Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to upload APK on play console getting (Upload a valid app bundle) issue - flutter

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 enter image description here

like image 704
Dhiroo Verma Avatar asked Nov 20 '25 06:11

Dhiroo Verma


2 Answers

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...

enter image description here

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.)
like image 148
Sniffer Avatar answered Nov 22 '25 21:11

Sniffer


You are uploading a .apk file in Google Play Console but you have to upload the .aab App Bundle file.

like image 28
Shivam Avatar answered Nov 22 '25 21:11

Shivam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!