The Android emulator used in this paper is the Nighthian emulator, and other emulators should also work according to the method in this paper. There may be some small discrepancy, should not be a problem!

Why can’t adb commands in the native SDK plantForms-Tools be found or connected to the corresponding Android emulator?

detailed

  • Typically, the local ADB version is inconsistent with the adb version of the corresponding emulator. The error message is as follows:

    List of devices attached
    adb server version (41) doesn't match this client (36); killing...
    * daemon started successfully *
    127.0. 01.:59865 device
    Copy the code

The solution

  • First, copy the three adb files of the local SDK to the corresponding adb directory of the emulator.

  • Second, replace files.

  • ** Finally, this step is very important! ** For the Nocturne emulator, there is also a nox_adB.exe file. Again, first backup the file, change the name of adb under SDK nox_adB. exe to the corresponding location.

  • Successful solution!

Why no logCAT logs in the LOGCAT TAB of ADT?

detailed

  • This problem will result in log output failure, which is not convenient for debugging.

The solution

  • Solutions:

    • Find ddmlib.jar in the android-sdk>tools>lib file
    • Look for ddmlib.jar in the Eclipse installation directory by going to Eclipse \ Configuration \org.eclipse.osgi
    • Replace the ddmlib.jar of ⅱ with the ddmlib.jar of ⅰ
    • Restart Eclipse. The problem is resolved
  • JDK 1.7.0 will generate an error. JDK 1.8.0 or later

  • Successful solution!

How do I connect with ADB commands if I have multiple emulators or devices?

  • Adb -s Device serial number shell

    The device serial number is the one viewed with ADB Devices.