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:
- lsof -i: 5555, query PID value corresponding to occupy the port,
- command + space in the search for "Activity Monitor", find a PID column, delete the corresponding process in accordance with the value of 1 PID
- 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