Reputation: 323
While attempting to create an apk file in Unity, I encountered the below error. I'm running a Windows 8 PC with a brand new Huawei Honor 8 cell phone connected by USB to the computer. Connecting my older Nexus 4 android phone has the same result:
My PC's operating system was able to find the device, and the drivers appear to be up-to-date in the device manager:
However, running adb devices
from the command prompt reveals nothing could be found. I also tried restarting the adb server:
Nothing appears in Chrome either:
I attempted other connection types in the device itself (PTP, MTP, Charge only, etc), but this had no affect on the problem, even after disconnecting and reconnecting the phone's USB cable to the computer:
I've got JDK installed and Android SDK. In the SDK manager my installed files look like this:
I also checked that the USB driver is installed in the manager:
At this point I have no idea what I'm missing, it's probably something simple.
Upvotes: 1
Views: 9487
Reputation: 612
I had this issue, and I resolved it by checking my Player Settings (Edit -> Project Settings -> Player) and ensuring that the Minimum API Level was at or below my phone's Android version.
Upvotes: 0
Reputation: 301
Have you enabled developer options on your phone and ensured that USB debugging is turned on?
Upvotes: 9