lundi 7 avril 2014

Java - ADB ne fonctionne pas... éclipse ne détecte pas mon périphérique - Stack Overflow


I have a problem with the adb. I have the adb drivers installed and even in the device manager my phone is shown when connected. But when I want to use my phone to test my apps via USB Debugging it doesn't work (USB debugging is activated). I also used the command prompt to execute "adb devices" but no devices are shown.


Do you have any idea?


Thank you:)




you need to install the USB Driver.


Find your device in the Device Manager, right-click on it and select Update Device Software, choose Browse my computer for driver software, navigate to the sdk folder (in my case it's under C:\Android):


C:\Android\adt-bundle-windows-x86_64-20131030\adt-bundle-windows-x86_64-20131030\sdk\extras\google\usb_driver


and finish the installation.


EDIT: Also you may need to click on Let me pick from a list of device drivers on my computer - when you have navigated to this folder you should see Android Composite ADB Interface - select it and finish the installation this way if the above does not work.




You may need to manually enter a value in your adb_usb.ini file. On Windows, that can be done with:


echo 0xYYYY >> "%USERPROFILE%\.android\adb_usb.ini"

where YYYY is the 4-digit Vendor ID for your device. (That's easy to get with lsusb on Linux, but I don't know how to determine it on Windows.)


You'll need to then restart ADB with:


adb kill-server
adb start-server
adb devices


I have a problem with the adb. I have the adb drivers installed and even in the device manager my phone is shown when connected. But when I want to use my phone to test my apps via USB Debugging it doesn't work (USB debugging is activated). I also used the command prompt to execute "adb devices" but no devices are shown.


Do you have any idea?


Thank you:)



you need to install the USB Driver.


Find your device in the Device Manager, right-click on it and select Update Device Software, choose Browse my computer for driver software, navigate to the sdk folder (in my case it's under C:\Android):


C:\Android\adt-bundle-windows-x86_64-20131030\adt-bundle-windows-x86_64-20131030\sdk\extras\google\usb_driver


and finish the installation.


EDIT: Also you may need to click on Let me pick from a list of device drivers on my computer - when you have navigated to this folder you should see Android Composite ADB Interface - select it and finish the installation this way if the above does not work.



You may need to manually enter a value in your adb_usb.ini file. On Windows, that can be done with:


echo 0xYYYY >> "%USERPROFILE%\.android\adb_usb.ini"

where YYYY is the 4-digit Vendor ID for your device. (That's easy to get with lsusb on Linux, but I don't know how to determine it on Windows.)


You'll need to then restart ADB with:


adb kill-server
adb start-server
adb devices

0 commentaires:

Enregistrer un commentaire