No android device found in unity

前端 未结 11 2214
花落未央
花落未央 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

提交回复
热议问题