当使用adb devices命令出现以下信息时:
或
使用以下步骤来解决:
1. Check if authorized:
2. Revoke USB Debugging on phone
If the device is shown as unauthorized, go to the developer options on the phone and click "Revoke USB debugging authorization"
3. Restart ADB Server:
Then restarted adb server
adb kill-server
adb start-server
4. Reconnect the device
The device will ask if you are agree to connect the computer id. You need to confirm it.
5. Now Check the device
It is now authorized!
浓缩就是精华:
1. 断开手机与电脑的USB连接
2. 禁用手机开发者模式,启用开发者模式
3. 重启手机
4. 连接手机与电脑