1.Run the Android environment in the flutter project in vs code
1.Install vs code
2.Install Android Studio
- Android Studio Official web
- Specific installation process but more introduction will not please Baidu
- in vs code
Flutter
Execution under projectflutter doctor
command - Android Studio After the installation is complete, configure according to the following figure
Android Studio First step
Android Studio The second step
Android Studio The third step
Android Studio Step four
- Restart
Android Studio
and the lack of flutter dependencies will pop up in the lower right corner. All you need to do is select Download All and wait until the download is complete
Android Studio The fifth step
Go back to vs code and run the
flutter doctor --android-licenses
command all the way YGo back to vs code and execute
flutter doctor
Command discoveryAndroid Studio
Dependencies have been installedSelect as shown
Go back to vs code and execute
flutter run -d xxxx
xxxYour device number is usuallyAndroid
After selecting the serial number of the phone you can install it in the emulator if your phone isAndroid
The system can also select your phone serial number to installThat means you're a success