No android device found in unity

80,294

Solution 1

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.

Solution 2

1. Install the driver for Android device on your computer.

2. Enable DEBUGGING in your Android device.

For Unity to be able to detect your Android device, it must be recognizable by the ADB program.

Open command prompt with cmd the change your directory to AndroidSDK\platform-tools with cd /d G:\AppDev\AndroidSDK\platform-tools .

Replace G:\AppDev\AndroidSDK\platform-tools with your android SDK location. then type adb devices. If no device is found then Unity wont' recognize it. Reboot your computer and try it again.

Once you see a device number, like in the picture below, then it will work in Unity.

enter image description here

Solution 3

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.

Solution 4

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

Solution 5

Changing a USB cable worked for me. Ironically, from an expensive fancy one to a super-simple cheap one.

Share:
80,294

Related videos on Youtube

p.karimdost
Author by

p.karimdost

Updated on July 05, 2022

Comments

  • p.karimdost
    p.karimdost almost 2 years

    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. 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.

    The cancel windows showed this error:

    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.

    The same error also appeared in the Console. How do I fix this error?

    • Programmer
      Programmer about 8 years
      It should work if you do what I provided in my answer. What is your android device Model number?
    • Fattie
      Fattie about 8 years
      you do not even state if you are using a Mac or PC
    • Fattie
      Fattie over 7 years
      key is often to turn on Debugging on the android device
  • LumbusterTick
    LumbusterTick about 8 years
    make sure that when drivers are installed , your device will ask to make a connection with your pc so accept it , otherwise it wont work
  • DKinnison
    DKinnison over 5 years
    This didn't work for me. I'm facing an issue after uninstalling and reinstalling unity. Not sure what happened. I did try to switch from Scripting runtime version 3.5 to 4x but I reverted and still isn't working. I've been able to build the entire time until last night when I uninstalled and reinstalled. Here is my SO question. I'm at a total loss. stackoverflow.com/questions/53341936/…
  • GnRSlashSP
    GnRSlashSP over 5 years
    how can a simple thing like this be the solution of big companies problems ? damm.... a simple "restart" is the problem.... thank you for this answer... I really can't imagine a thing of this happening in 2018.... we really need to improve our developers lol
  • normyp
    normyp over 3 years
    Thank you so much! This was what fixed it for me.
  • siman
    siman over 3 years
    Thank you! I had a similar problem via TCPIP - in my case adb from the command line was connected but unity (2019.4.18f1) on PC couldn't find the device and in fact every time I refreshed the devices in UNITY it disconnected the TCP adb connection. Used your suggestion and switched from the UNITY built-in adb to android studios adb and it worked!