试图运行Android应用程序时,Eclipse启动错误应用程序、错误、Android、Eclipse

2023-09-13 01:06:00 作者:裤裆里有杀气!

我试图建立我的工作站在Eclipse伽利略Android开发。我安装了最新的ADT插件和Android SDK,但是当我尝试运行任何基本的Andr​​oid项目创建我得到这个错误。

  eclipse.buildId = M20090917-0800
java.version = 1.6.0_17
java.vendor = Sun微系统公司
BootLoader的常量:操作系统= Win32中,ARCH = 86,WS = Win32中,NL = EN_US
框架参数: - 产品org.eclipse.epp.package.java.product  - 产品org.eclipse.epp.package.java.product
命令行参数:-os的win32 -ws的win32 -arch 86 -product org.eclipse.epp.package.java.product -data C:\ Documents和Settings \ dmcnamar \工作区 - 产品org.eclipse.epp.package.java 。产品


错误
周二01月26日美国东部时间2010 18时○○分41秒
启动的HelloWorld:在发生内部错误。

显示java.lang.NullPointerException
在com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch(来源不明)
在com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch(来源不明)
在com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(来源不明)
在org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
在org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
在org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
在org.eclipse.debug.internal.ui.DebugUIPlugin $ 8.run(DebugUIPlugin.java:1069)
在org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
 

解决方案

在我的情况下,这个问题就走了,当我选择了一个AVD。我使用Eclipse项目和运行配置了一个有效的AVD,但未被选中。当我检查的复选框,问题就走开了。

问候 Kamesh

如何使用eclipse打开编好的android应用程序

I'm trying to set up my workstation for Android development with Eclipse Galileo. I installed the latest ADT plugin and the Android SDK, but I get this error when I try to run any basic Android project I create.

eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product -data C:\Documents and Settings\dmcnamar\workspace -product org.eclipse.epp.package.java.product


Error
Tue Jan 26 18:00:41 EST 2010
An internal error occurred during: "Launching HelloWorld".

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)

解决方案

In my case, the problem went away when I chose an AVD. I was using an eclipse project and the run configuration had a valid AVD but it was not checked. Once I checked the checkbox, the problem went away.

Regards Kamesh