Reputation: 43
I'm fairly new to android studio and flutter. Recently I released a simple app and I used the command flutter build apk
. An apk was built fairly quickly but the size was a bit more than I expected. Then someone advised me to run the command flutter build appbundle --target-platform android-arm,android-arm64
and so I did that with my next app. However, terminal is now stuck at Running Gradle task 'bundleRelease'...
. There's no cpu usage so I'm sure the app is not being built in the background.
Upvotes: 2
Views: 1263
Reputation: 1914
Firstly, run flutter clean
then flutter upgrade
(optional)
*if you want to release your app in Playstore, then run
flutter build appbundle --target-platform android-arm,android-arm64,android-x64
otherwise flutter build apk
will also work
This will help you
Upvotes: 2