Summary of common errors and solutions in Android note collation

  • 2020-10-23 20:17:52
  • OfStack

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 1 system environment variable ANDROID_ADB_SERVER_PORT, value 7913 (arbitrary 1 number), and then start adb server

Steps:

a) enter cmd command mode

b) cd XXX \ platform - tools

c) adb start - server

2. Common commands

a) shut down adb service

adb kill-server

b) to start the adb service

adb start-server

c) to view the device

adb devices

d) to install software

adb install < The software name >

e) uninstall software

adb uninstall < The software name >

adb uninstall -k < The software name >

If the -ES76en parameter is added, uninstall the software but keep the configuration and cache files.

f) Login device shell

adb shell

This command logs in to shell for the device.

This is to run the device command directly, equivalent to executing a remote command

g) sends files from the computer to the device

adb push < The local path > < The remote path >

Use the push command to copy files or folders from the local computer to the device (mobile phone)

h) downloads files from a device to a computer

adb pull < The remote path > < The local path >

Use the pull command to copy files or folders from the device (phone) to the local computer

i) displays help information

adb help

This command displays help information

The above is a summary of common errors and solutions of the Android note collation Shared by this site. I hope you enjoyed it.


Related articles: