團結

2016-04-24 46 views
1

當我建立的Android遊戲沒有發現Android設備,我得到這個消息:團結

No Android device found! Make sure USB debugging has been enabled. Check your device. In most cases there should be a small icon in the status bar telling you if the USB connection is available. If you are sure that your device is attached then it might be your USB driver that's the problem. For details please check the Android SDK setup section in the Unity manual.

取消窗口顯示此錯誤:

No android device found! If you are sure that your device is attached then it might be your USB driver that's the problem. For details please check the Android SDK setup section in the Unity manual.

同樣的錯誤也出現在控制檯。 我該如何解決這個錯誤?

+0

它應該工作,如果你做我在我的答案中提供的。什麼是您的Android設備型號? – Programmer

+2

你甚至沒有說如果你使用的是Mac或PC – Fattie

+0

鑰匙經常打開**調試**在Android設備 – Fattie

回答

4

。在計算機上安裝Android設備驅動程序。

。在您的Android設備中啓用DEBUGGING。

對於Unity能夠檢測到您的Android設備,它必須能被ADB程序識別。

打開命令提示符cmd將目錄更改爲AndroidSDK\platform-toolscd /d G:\AppDev\AndroidSDK\platform-tools

用您的android SDK位置替換G:\AppDev\AndroidSDK\platform-tools。然後鍵入adb devices。如果找不到設備,那麼Unity不會識別它。重新啓動計算機並再次嘗試。

一旦你看到一個設備號碼,如下圖所示,那麼它將在Unity中工作。

enter image description here

+1

請確保安裝驅動程序時,您的設備將要求與您的PC連接所以接受它,否則它不會工作 – LumbusterTick

2

斷開你的Android設備的USB電纜,轉到設置>開發者選項和關閉,對USB調試。同時點擊「撤銷USB調試訪問」。現在,連接USB電纜。當提示時點擊「是」。

如果這不幫助@Programmer答案。