When Mac adb devices, has been to show how to solve the emulator-5554 offline

problem:

When the terminal performs adb devices, always show emulator-5554 offline, adb disconnect delete stubborn.

the reason:

There are programs occupied port 5555, resulting in 5554 can not enable adb considered as the first device

Method:

  1. lsof -i: 5555, query PID value corresponding to occupy the port,
  2. command + space in the search for "Activity Monitor", find a PID column, delete the corresponding process in accordance with the value of 1 PID
  3. Adb devices to perform again in the terminal, emulator-5554 offline disappeared

Explanation:

Personal idea to start the project corresponds exactly ports 5555, 5555 terminate the corresponding port java carried back to normal; how to solve this problem, if you have been displayed emulator-5554 offline, adb logcat not be used, has prompted the error.

Other: Mac query port corresponding PID value method: lsof -i: 5555 or lsof -i tcp: 5555

 

Published 75 original articles · won praise 48 · Views 350,000 +

Guess you like

Origin blog.csdn.net/KingJin_CSDN_/article/details/101516635