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, set a system environment variable ANDROID_ADB_SERVER_PORT, with a value of 7913 (any number at will), and then start adb server
step:
a) Enter cmd command mode
b)cd XXX\platform-tools
c)adb start-server
2. Commonly used commands
a) Close adb service
adb kill-server
b) Start adb service
adb start-server
c) Check the device
adb devices
d) Install software
adb install <software name>
e) Uninstall the software
adb uninstall <software name>
adb uninstall -k <software name>
If the -k parameter is added, it is to uninstall the software but retain the configuration and cache files.
f) Log in to the device shell
adb shell
This command will log in to the device's shell.
The following will be the direct running of the device command, which is equivalent to executing remote commands
g) Send files from computer to device
adb push <local path> <remote path>
Use the push command to copy files or folders on the computer to the device (mobile phone)
h) Download the file from the device to the computer
adb pull <remote path> <local path>
Use the pull command to copy files or folders on the device (mobile phone) to the computer
i) Display help information
adb help
This command will display the help information