I am getting an error while uploading apk to play console for first time. I have released 2 apps with same account and did not get any error, but this is the 3rd app and it is working fine on each mode (--release, --debug, --profile). I am building apk in flutter using --dart-define using the following command
flutter build apk --release --split-per-abi --no-tree-shake-icons --dart-define=ID=1234 --dart-define=APP_NAME=test_app --dart-define=APP_SUFFIX=.test
below is issue screenshot

Google Play store simply does not accepts APK anymore for publishing the apps, you have to upload the bundle of the Android app.
For reference
For Native Android
Android Studio-> Build-> Generate Signed Bundle /APK...

For Flutter See this and dev doc
From the command line:
Enter cd [project]
Run flutter build appbundle
(Running flutter build defaults to a release build.)
You are uploading a .apk file in Google Play Console but you have to upload the .aab App Bundle file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With