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

浪尽此生 提交于 2019-12-18 19:05:38

问题


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?


回答1:


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!




回答2:


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




回答3:


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




回答4:


updating ADT from eclipse fixed my problem



来源:https://stackoverflow.com/questions/3541811/unable-to-launch-android-application-in-eclipse-an-internal-error-occurred-duri

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!