Intellij Idea does not allow to run app on real device

I have Idea 12 with Oracle SDK 1.6 configured and with Android SDK,

$ ./adb devices
List of devices attached 
S5830c10eb068   device

      

Also, Eclipse allows you to run a project directly on a physical device, but Idea just can see that device - S5830c10eb068

(Samsung gt-s5830, android 2.3.6) in some windows:

enter image description here

but even when I select "USB device" in "Run Configuration" - nothing happens:

enter image description here

What should I do?

Also, when connecting a device, errors in logcat:

02-20 03:59:35.419: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/9
02-20 03:59:35.419: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/9
02-20 03:59:35.439: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/9
02-20 03:59:35.439: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/9
02-20 03:59:35.539: ERROR/MountService(158): ### notifyShareAvailabilityChange :: method = ums, avail = false
02-20 03:59:35.549: ERROR/MountService(158): notifyShareAvailabilityChange :: send ACTION_UMS_CONNECTED
02-20 03:59:38.609: ERROR/MountService(158): ### notifyShareAvailabilityChange :: method = ums, avail = true
02-20 03:59:38.619: ERROR/MountService(158): notifyShareAvailabilityChange :: send ACTION_UMS_CONNECTED
02-20 03:59:39.639: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/42
02-20 03:59:39.639: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/42
02-20 03:59:39.919: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/42
02-20 03:59:39.919: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/42
02-20 03:59:40.219: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/42
02-20 03:59:40.219: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/42
02-20 04:00:12.689: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/9
02-20 04:00:12.689: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/9
02-20 04:00:12.699: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/9
02-20 04:00:12.699: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/9
02-20 04:00:12.809: ERROR/MountService(158): ### notifyShareAvailabilityChange :: method = ums, avail = false
02-20 04:00:12.819: ERROR/MountService(158): notifyShareAvailabilityChange :: send ACTION_UMS_CONNECTED
02-20 04:00:22.859: ERROR/MountService(158): ### notifyShareAvailabilityChange :: method = ums, avail = true
02-20 04:00:22.889: ERROR/MountService(158): notifyShareAvailabilityChange :: send ACTION_UMS_CONNECTED
02-20 04:03:52.719: ERROR/MountService(158): ### notifyShareAvailabilityChange :: method = ums, avail = false
02-20 04:03:52.729: ERROR/MountService(158): notifyShareAvailabilityChange :: send ACTION_UMS_CONNECTED
02-20 04:04:25.659: ERROR/MountService(158): ### notifyShareAvailabilityChange :: method = ums, avail = true
02-20 04:04:25.669: ERROR/MountService(158): notifyShareAvailabilityChange :: send ACTION_UMS_CONNECTED
02-20 04:59:09.369: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/9
02-20 04:59:09.369: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/9
02-20 04:59:09.389: ERROR/RingtoneManager(158): getActualDefaultRingtoneUri : content://media/internal/audio/media/9
02-20 04:59:09.399: ERROR/RingtoneManager(158): Uri.parse(uriString) : content://media/internal/audio/media/9

      

Also, if I selected "Show chooser dialog" and then select "run" from the "Run" menu, the same window appears as when opening the second image.

+3


source to share


5 answers


You are trying to edit Defaults , but you need to create a launch configuration new .

See this section of the documentation for details .



Once the configuration is created, you can select it from the drop-down list on the toolbar and the Run / Debug buttons will become available.

+3


source


Run --> Edit Configurations... --> General --> Show Chooser Dialog --> OK



Then start it up again.

+1


source


Select "show selection dialog" and you will see a dialog with device ID

0


source


Ideally 13, in launch configuration -> General -> target device -> USB devices

0


source


It might have something to do with the device being listed: on my machine, the device is only listed after I manually deleted the ADB process (task manager -> "adb.exe * 32"). Before that there was no device in the list or a grayed out OK button. (IntelliJ IDEA Community 13.0.2)

0


source







All Articles