Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse (Android): When clicking 'Run'/'Debug' nothing happens

I have just installed (extracted) properly the ADT bundle for eclipse + android SDK and also set a new AVD which is currently working on my background and looks fine.

my problem is: once i create any app and click the 'Run' or 'Debug' button, nothing happens. I don't see any 'launching : (nn%) ..' message at the bottom and the AVD is not effected at all - nothing happens! I have no idea what is the problem but a while ago i installed this exactly same way and had seen this issue before. could anyone please advice me what to do?

like image 920
Popokoko Avatar asked Feb 22 '13 09:02

Popokoko


3 Answers

right click you project->run as -> run configuration, check whether launce default activity is selected, and in target tab check "always prompt to pick device"

like image 144
Kapil Vats Avatar answered Nov 04 '22 02:11

Kapil Vats


If the button works fine for the first time and doesn't work later, try this.

Open Devices view using Window > Show View > Devices.

Then, in Devices, under your emulator, find your application package name. Select it and press the red "STOP" button.

After this, the application should run properly.

like image 26
Triang3l Avatar answered Nov 04 '22 03:11

Triang3l


In the editor MainActivity.java file should be open/in focus.Then run your app. It should work fine. Problem occurs when some other xml file is in focus in the editor eg.styles.xml etc.

like image 1
Sunil Kumar Avatar answered Nov 04 '22 01:11

Sunil Kumar