I was trying to make my basic app to build but I keep getting this error just before it completes the build “No android devices found… If you are sure that device is attached then it might be USB driver problem, for details please check Android SDK Setup section in Unity Manual.”
My device is an HTC One X:
USB Debugging enabled
Android SDK drivers installed (I’ve even donwloaded everything on SDK manager)
USB driver installed
the command ‘adb devices’ lists my device perfectly with no problems
I’m even using Untity Remote on my phone with no problems and it’s fluent as it can be, but somehow doesn’t recognize it when building the app
I’m on W7 x64, and yes, I’ve downloaded both 32 and 64 bit versions of Android SDK (running on different hard disks), both 32 and 64 bit versions of JRE and JDK…
The only few things I’ve noticed as strange are:
My PC shows the HTC as an MTP device not as an Android USB device on “Control Panel\Hardware and Sound\Devices and Printers”, but as an Android USB Device on “Computer Management\Device Manager”
N.B: I’ve downgraded from Unity 4.1 to 3.4 in order to use Uni2Lwp plugin, I had my share of problems to get it to run (thanks to your help on these forums), then I had the famous win32exception error that was fixed by simply copy/paste adb.exe from plateform-tools to tools (because Google moved it for some reason in their last update).
Thank you for any help, I’ve been trying everything for the last 2 days with no results.
For anyone having the same trouble as me, here’s what to do:
If you have the lastest ADT Bundle, there’s no need to downgrade to r21 or r22.
The devs at Google changed many files location in the latest ADT Bundle, so Unity will have a hard time setting up. All you have to do is copy/paste these files:
adb.exe (from plateform-tools → tools) AdbWinApi.dllAdbWinUsbApi.dll (from plateform-tools → tools) = This was causing Unity to not being able to find/identify my Android Device. Unity was looking for these files in the wrong folder. aapt.exe (from build-tools\android-4.4 → plateforms\android-19)
And last but certainly not least, create the apkbuilder.bat (that Google removed in their Android SDK r22 up) from this link: apkbuilder.bat and then place it under sdk\tools To create the .bat file, just open a text editor, copy/paste the code from the link and then save the file as .bat not .txt
Everything should be working peachy, as it did for me.
I found a solution to the problem, this is due to the lack of a USB driver on the phone, I searched for a long time which ones to install correctly, but in the end I came to PdaNet Download PdaNet+ / by installing the version for a computer with a USB phone connected, I had the computer authorized using the phone, and it works! Hurray! Unity Remote now connects without problems.
And the phone uses a way to transfer images, not multimedia