當我在終端輸入adb devices
命令時,顯示設備已連接
List of devices attached
0123456789ABCDEF device
但是當我輸入adb logcat
命令,系統顯示以下信息,被掛起
waiting for device
這是什麼原因呢?我是在 cts上測試的。
你可以試試下面的步驟,但是不能保證能否幫的上你:
# Kill and restart
$ adb kill-server
$ adb start-server
daemon not running. starting it now *
daemon started successfully *
# Device appears, but is listed as offline
$ adb devices
$ adb logcat