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?
I had the same issue, it works for me
Check ARMv7
Unchek Android TV Compatibility
Changing a USB cable worked for me. Ironically, from an expensive fancy one to a super-simple cheap one.
if @Programmer or @kamran-bigdely solutions didn't work, then go to Edit > Project Settings > Editor, and change "Device" option to "Any Android Device". Best of Luck!
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 toAndroidSDK\platform-tools
withcd /d G:\AppDev\AndroidSDK\platform-tools
.Replace
G:\AppDev\AndroidSDK\platform-tools
with your android SDK location. then typeadb 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.
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.
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.