No android device found in unity

前端 未结 11 2173
花落未央
花落未央 2020-12-06 05:26

When I am building a game for android, I get this message:

No Android device found! Make sure USB debugging has been enabled. Check your device. I

相关标签:
11条回答
  • 2020-12-06 06:11

    For me, the device was working just fine, but once while unity was building up the editor froze and I had to kill the unity editor, and when I started it again unity couldn't recognize the device, and so after hours of struggling I finally find the solution.

    first, identify the adb status of your device go to the Android SDK path on your computer and under platform-tools open the cdm

    and type the following

    adb devices
    

    for me, my device is there but its state is, unauthorized. and so the solution was to authorize it again, there are many ways to do it:

    1- try to switch the USB debugging option on and off under Developer options/Debugging also, try to Revoke USB debugging authorizations.

    the goal is to make the "authorize this computer" popup appear to update the status. however; this didn't work for me the popup didn't appear, the solution to forcing the popup to show is as follow:

    2- go again to platform-tools and open the cmd

    type

    where adb
    

    Identify all the duplicate entries in the path. Remove duplicates.

    Now do

    adb kill-server 
    

    then

    adb start-server
    

    the popup should now appear, and the status of the device should be authorized.

    credit to @user6123723

    0 讨论(0)
  • 2020-12-06 06:18

    Make sure that you have "Charge only" in USB options - I had MTP enabled and the same error. After disabling MTP everything works fine.

    0 讨论(0)
  • 2020-12-06 06:21

    To all Huawei owners check that under network is actived USB tethering,then activate USB debugging. I was changing SDK,downloading all sorts of ADB and USB drivers. Breaking my head 2 days until i find in some webpage that Huawei requires that USB tethering is on.

    0 讨论(0)
  • 2020-12-06 06:24

    Disconnect the USB cable from your android device, go to Settings > Developer Options and turn off and on the USB Debugging . Also tap on "Revoke USB Debugging Access". Now, connect the USB cable. When prompted tap "Yes".

    If this doesn't help follow @Programmer answer.

    0 讨论(0)
  • 2020-12-06 06:26

    For all those who spent hours trying to find out what's wrong and none of above answers helped. Please also check if cable you are using is not cheap "charging only and no data transfer type".

    I've picked up a random cable from my cable box. After trying everything and loosing x amount of hair and time, I've decided to check a different cable, and voila everything worked immediately.

    0 讨论(0)
提交回复
热议问题