Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to launch Android application in Eclipse; An internal error occurred during: "Launching myApp"

I'm unable to start up my Android application in Eclipse, I'm getting the following error when I select "Run as Android Application"

I have my Android Virtual Device running, can't see any issues with that (I'm able to navigate around the OS on the emulator etc)

When I try to "Run as Application" I get the following popup from eclipse

An internal error occurred during: "Launching myApp".

When selecting "View Error Log" this is as much info as I can get

java.lang.NullPointerException
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch(Unknown Source)
at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch(Unknown Source)
at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(Unknown Source)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Something wrong with the ADT plugin maybe?

like image 930
Jimmy Avatar asked Aug 22 '10 14:08

Jimmy


3 Answers

I encountered the same problem. While having your project selected, go to the Top "Run" Menu. Open "Run Configurations" and select your target virtual device. Click apply, and then run the project.

It worked fine for me.

Good Luck!

like image 140
Benny Skogberg Avatar answered Nov 09 '22 01:11

Benny Skogberg


Also double check if you have the Project name specified in the Android Tab of the run configuration.

like image 2
Wesley Avatar answered Nov 09 '22 01:11

Wesley


I closed eclipse and deleted .android folder under C:\Users\YourComputerName direction and opened eclipse again. It worked

like image 1
Etibar - a tea bar Avatar answered Nov 09 '22 00:11

Etibar - a tea bar