Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I make IntelliJ debug my android applications via the device instead of the emulator?

I've been searching all evening, and I can't find a way to have IntelliJ deploy my android application to my device via USB debugging. I can't see any options to specify the target other than a virtual device.

I have device drivers installed, and all updates available to IntelliJ X and the SDK.

Is it even possible? Or only for eclipse?

like image 927
Jimmy Avatar asked Feb 11 '11 20:02

Jimmy


People also ask

How do I debug an application in IntelliJ?

Run the program in debug modeClick the Run icon in the gutter, then select Modify Run Configuration. Enter arguments in the Program arguments field. Click the Run button near the main method. From the menu, select Debug.

Can we develop Android app in IntelliJ?

Create a new Android project Launch IntelliJ IDEA. On the Welcome screen, click New Project. If you already have a project open, from the main menu select File | New | Project. In the New Project wizard, select Android on the left.


1 Answers

Yes it is possible - just specify in the Run/Debug configuration no virtual device to use and IJ will prompt you where to run the app. If the devices is connected, it will be listed and you can just select it.

This works very well here on OS X.

On windows you may need to install the driver. Download through the SDK manager Extras-> Google USB driver. Then go to your SDK\Extras\Google\USB_driver\ folder, right-click on android_winusb.inf and choose Install.

like image 54
Heiko Rupp Avatar answered Sep 21 '22 16:09

Heiko Rupp