Analyse Flutter App Size Command not working

362 views Asked by At

I am running the following commands to build the app bundle and analyze the size. I tried all the following commands but I am getting an error.

flutter build appbundle --target-platform android-arm --analyze-size
flutter build appbundle --target-platform android-arm64 --analyze-size
flutter build appbundle --target-platform android-x64 --analyze-size

Error:

Could not find an option named "analyze-size".
2

There are 2 answers

0
Nikhil27bYt On

Upgrade your flutter version using this 2 command flutter channel stable flutter upgrade after run your command to Analyse Flutter App

0
Heshan Sandeepa On

it has to be as follows,

flutter build appbundle --analyze-size --target-platform <architecture>

architecture as you prefer Ex: android-arm64