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.
Have you enabled developer options on your phone and ensured that USB debugging is turned on?