As 除錯 no target device found

Whpitot發表於2018-03-14

As 除錯 no target device found

背景 在Android Studio 除錯時,開啟手機開發者模式,設定USB除錯為Ture;
Andorid Device Monitor也能檢測到手機 為Online;
在勾選 Enable ADB Integeration 提示錯誤 adb.exe,start-server' failed -- run manually if necessary;
這個是時候連線手機提示會提示:no target device found 需要手動 執行 adb.exe 1.adb kill-server
2.adb start-server
找到adb.exe的所在目錄,因為我的android-sdk-windows是放在D盤上,所以要先進入D盤,直接輸入D: 輸入cd android-sdk-windows\platform-tools 從而進入了adb.exe所在的目錄。然後執行上述命令,即可除錯成功。

相關文章