Home > Mobile >  how to build appbundle in release mode with real device in flutter?
how to build appbundle in release mode with real device in flutter?

Time:07-01

I have built an app in flutter using android studio and am trying to release it on the play store.

According to enter image description here

However, when I try to upload this on the play console, I get the error message that "You uploaded an APK or Android App Bundle that was signed in debug mode. You need to sign your APK or Android App Bundle in release mode." aslo I swiched to release mode too but it is same.

CodePudding user response:

Go to your file => New => import project => open same projects android file in new tab => then go to build =>generate signed bundle/apk

CodePudding user response:

I tried many ways and finally came up with a solution. Now we have switched to release mode, run this command:

 flutter build appbundle --release

It worked for me, I hope it works for you too enter image description here

  • Related