Flutter Android real machine debugging, debugging emulator, Vscode applications developed Flutter

Prerequisites:
1, to prepare an Android phone
2, the phone needs debug mode
3, data line phone connected to the computer
4, to allow the computer to the phone Usb debugging
5, the corresponding phone sdk version must be installed
note:
1. Turn off the computer, such as the above cell phone assistant: 360 Mobile Assistant, treasure and other application software occupy adb port
2, close HBuilder like occupation Adb port software
3, the data line must be available (mobile phone 360 ​​can detect assistant)
 
Two, Flutter emulator debug
3, a god simulator: https: //www.yeshen.com/
 
Three, Vscode in the development of applications running Flutter
If you're used to with Android Studio can then direct the development of Flutter directly with Android Studio. But Android
Studio consuming computer resources, so here we recommend using Vscode
1, Vscode plug-in installation Flutter flutter code hints Dart fltter plug ins.
2, Vscode open flutter project development
3, run Flutter project
flutter run
r button: Click thermal load, it will be reloaded.
p key: Show Grid, this can be a good grasp of the layout, the work is useful.
o Key: switching the preview mode android and ios.
q key: Exit preview mode debugging.
4, Vscode default Rom third-party simulator solution
Open a god simulator bin directory D: \ Program Files \ Nox \ bin then run cmd command line
nox_adb.exe connect 127.0.0.1:62001

Guess you like

Origin www.cnblogs.com/zhaofeis/p/12325472.html
Recommended