简体   繁体   中英

Intellij idea usb device debugging app doesn't load on phone

I have a nexus 4 and all the required drivers installed (the phone is recognized with the "adb devices" command).

When I try to debug my android app with Intellij idea over USB I get this output:

Waiting for device.
Target device: lge-nexus_4-xxxxxxxx
Uploading file
    local path: C:\Users\Public\Documents\Java Projects\Test GDX Project\android\build\apk\android-debug-unaligned.apk
    remote path: /data/local/tmp/com.testgdx.game.android

But nothing ever loads on my phone?

EDIT: After I manually installed the app once, usb device debugging started to work all of a sudden.

Trying using a different USB cable (ie original cable and not a cheap 0.99$ cable). for some devices, some cables are not compatible for debugging purposes.

Windows 7

To install the Android USB driver on Windows 7 for the first time:

Connect your Android-powered device to your computer's USB port. Right-click on Computer from your desktop or Windows Explorer, and select Manage. Select Devices in the left pane.

Locate and expand Other device in the right pane.

Right-click the device name (such as Nexus S) and select Update Driver Software. This will launch the Hardware Update Wizard.

Select Browse my computer for driver software and click Next.

Click Browse and locate the USB driver folder. (The Google USB Driver is located in \\extras\\google\\usb_driver.)

Click Next to install the driver.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM