0
I’m starting in Flutter, I would like to know how to compile my project to be a native application, such as for Android. How can I do this from the command line? I found Andoid studio very confusing.
Thanks for the personal help!
0
I’m starting in Flutter, I would like to know how to compile my project to be a native application, such as for Android. How can I do this from the command line? I found Andoid studio very confusing.
Thanks for the personal help!
1
The SDK Flutter alone has its build modes, in which we could do something different depending on the mode in which our app is running, are they:
flutter run
.flutter run --profile
.flutter run --release
or flutter build
.So, to compile a final version, which manages APK by compiling AOT on your device, simply flutter run --release
or flutter build
.
Source in portuguese and english.
1
Just run on the command line flutter run --release
As for Android Studio, a good alternative that people have adopted for a long time is to use Microsoft’s Visual Studio Code. Simple to use, lightweight and customizable with large repository of available extensions.
Browser other questions tagged android android-studio flutter
You are not signed in. Login or sign up in order to post.
Some people use vs code with the Dart and flutter plugin instead of android studio.
– rray
For it to run on android if I’m not mistaken or is flutter run or flutter run android
– Juliana Marques
@Julianamarques
flutter run
runs in debug mode. My answer clarifies.– Julio Henrique Bitencourt