I have configured flutter on my Linux Mint and I have downloaded the android command line tools instead of Android Studio. I have also updated the gradle and commandline-tools path on my Linux Mint. Now I want to install the app on my android smartphone and test. How can I do that?
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
You can type this in your terminal in your project directory to get the release apk for your project
The release apk file will be in build>app>outputs>flutter-apk>app-release.apk
If you want to debug the app, then you can connect your android phone to your pc and then run this command in the terminal:
and then select your android device from the options to debug your app
Run
Flutter doctor -v
to check for any issues (You may have to accept android-licences withflutter doctor --android-licenses
).Connect your android device (Debugging mode should be enabled in the developer options) with USB
You can see connected device in VSCode at bottom-right corner,select your device
Press F5 to run or use "
Flutter run
" command