Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't load Nexus 7 USB driver for Android debugging on WinXP
    text
    copied!<p>I am very new to Android development.</p> <p>I ran the tutorial for creating the <i>Hello, world</i> app and ran it successfully on the Android emulator. Now I want to try it on a Nexus 7 tablet and can't get the required USB driver to load on this WinXP system. Things I have done:<ol></p> <p><li>Ran the SDK Manager to install the Google USB driver on my machine. The directory &lt;sdk&gt;\extras\google\usb_driver containing a .inf file and a bunch of other stuff showed up as expected.</p> <p><li>On the tablet, enabled debugging mode. It now shows <i>USB debugging</i> checked in the <i>Developer options</i> menu.</p> <p><li>Plugged in the tablet to the USB. Windows popped up the <i>found new hardware</i> dialog.</p> <p><li>Following the <a href="https://developer.android.com/tools/extras/oem-usb.html" rel="nofollow noreferrer">directions from Google</a>, eventually gave it the path to the driver in &lt;sdk&gt;\extras\google\usb_driver.</p> <p></ol></p> <p>Windows then says that it can't install the device. I have tried rebooting the PC, turning the tablet off and on, turning off USB debugging in the tablet and then on again, but nothing has worked.</p> <p>How do I get the driver loaded so that I can debug Android apps on the tablet?</p> <h2>Added:</h2> <p>Here is the screen shot of trying to tell Windows where the driver is:</p> <p><img src="https://i.stack.imgur.com/1kY3f.jpg" alt=""></p> <p>And here is the response after clicking NEXT above:</p> <p><img src="https://i.stack.imgur.com/kn95C.jpg" alt=""></p> <p>Something flashes up very briefly before this, but it's too fast to see what it's saying.</p> <h2>The Solution</h2> <p>I got things working thanks to <a href="https://stackoverflow.com/users/2844992/andrew-q">Andrew Q</a>, but my details were a little different from his so I am documenting them here in case someone else bumps into this with a setup more like mine.</p> <p>The main thing that made the difference is changing the tablet's USB behavior from a mass storage device to a camera. On Andrew's device this setting is apparently in the normal Settings menu you can get to when swiping down in the top right corner. In my case Settings > Storage only displays some statistics with no (apparent) options. However, when the device is connected to the USB in debug mode, there is a little icon in the top left corner that is four vertical lines. Swiping that down shows you whether the device is connected as a media device (MTP) or a camera (PTP), and allows you to select either. Mine was MTP by default, and switching to PTP did the trick.</p> <p>Once the device was in PTP mode, WinXP was able to load the Google driver without problem. I didn't have to deliberately uninstall and manually install the driver. The "Found New Hardware Wizard" shown above actually worked instead of resulting in "Cannot Install this Hardware".</p> <p>Once that was done everything worked as expected. Eclipse could see the tablet and allowed me to select it as a target after Run > Run.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload