When i try to compile on Android Studio i got this message:
USB device not found
My phone is a HTC one X with CyanogenMod 10.1.3-RC2
in device Manager on windows The Android USB Devices is recognize
I have already try to adb kill-server then adb start-server and a adb devices but this didn't work
someone have any advice ?
Thanks a lot.
I found a solution for this,
find the id of your device in the device manager
like USB\\VID_XXXXPID_0CD6&REV_XXXX&MI_00
and add this to your android_winsub.inf ( sdk\\extras\\google\\usb_driver )
like this:
[Google.NTx86]
;YOUR PHONE NAME
%SingleAdbInterface% = USB_Install, USB\VID_XXXXPID_XXXX&REV_XXXX&MI_00
%CompositeAdbInterface% = USB_Install, USB\VID_XXXX&PID_XXXX&MI_00
[Google.NTamd64]
;YOUR PHONE NAME
%SingleAdbInterface% = USB_Install, USB\VID_XXXXPID_XXXX&REV_XXXX&MI_00
%CompositeAdbInterface% = USB_Install, USB\VID_XXXX&PID_XXXX&MI_00
And try to reinstall with right click update the driver.
I faced this problem on a Samsung Galaxy. I uninstalled the device driver and re-installed it, it was able to detect. Another time, installing Samsung Kies software helped. You might want to find out the analogous for that.
Although my computer could recognise my phone, I had to install the official drivers from the Samsung developer site to get adb/Android Studio to recognise it:
I had the same problem in Ubuntu with a HTC Desire C - Android Studio could not run apps on it (strange enough, all other phones worked "out-of-the-box").
To solve the problem, open (with vim
or whatever you use)
/etc/udev/rules.d/51-android.rules
and add your phone manufacturer. In my case, for HTC, I added this line:
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
save&close and then run
chmod a+r /etc/udev/rules.d/51-android.rules
Of course you have to do it as root or sudo
.
More info and a list of other phone manufacturers is listed on the android developer site: https://developer.android.com/studio/run/device.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.