Summary of common errors and solutions in Android note sorting
1、 No active compatible AVD's or devices found. Relaunch this configuration after connecting a device or starting an AVD
Modify the port of ADB server and set a system environment variable Android_ ADB_ SERVER_ Port, value 7913 (any number), and then start the ADB server
Steps:
a) Enter CMD command mode
b)cd XXX\platform-tools
c)adb start-server
2、 Common commands
a) Turn off the ADB service
adb kill-server
b) Start ADB service
adb start-server
c) View device
adb devices
d) Install software
ADB install < software name >
e) Uninstall software
ADB uninstall < software name >
ADB uninstall - K < software name >
If the - k parameter is added, the software will be uninstalled, but the configuration and cache files will be retained
f) Login device shell
adb shell
This command will log into the shell of the device
After that, you will run the device command directly, which is equivalent to executing the remote command
g) Send files from your computer to your device
ADB push < Local Path > < remote Path >
Use the push command to copy the files or folders on the computer to the device (mobile phone)
h) Download files from your device to your computer
ADB pull < remote Path > < Local Path >
Use the pull command to copy the files or folders on the device (mobile phone) to the local computer
i) Display help information
adb help
This command will display help information
The above content is a summary of common errors and solutions in Android note sorting shared by Xiaobian. I hope you like it.