java - NullPointerException 启动 Android 应用程序

标签 java android eclipse nullpointerexception

有点奇怪的问题。我打开了我的 eclipse 工作区,并尝试启动我的 android 应用程序来测试它,它抛出了 NullPointerException 启动应用程序。甚至还没有进入该应用程序。

eclipse.buildId=M20100211-1343
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86


Error
Sat Nov 12 11:23:25 EST 2011
An internal error occurred during: "Launching ww3".

java.lang.NullPointerException
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch(AndroidLaunchController.java:357)
at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch(LaunchConfigDelegate.java:321)
at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:237)
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)

编辑: 依然没有。更改JDK版本的结果:

eclipse.buildId=M20100211-1343
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

最佳答案

您需要更新您的 ADT。我不确定如何通过菜单执行此操作,因为在我重新启动 eclipse 后,eclipse 显示了一个对话框,指导我进行操作。

值得研究。

关于java - NullPointerException 启动 Android 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8105826/

相关文章:

java - 无法在 Android Oreo 更新中保存图像文件。怎么做?

java - 使用单选按钮设置窗口背景

java - 无法运行 mvn vaadin :compile on Vaadin Maven project

java - 哪个是最好的开源应用服务器?

java - 编程新手, double 不会添加

java - 如何保持对在子线程上创建的实例的引用

java - Firebase Java Server 向所有设备发送推送通知

java - 无法删除旧的 javaCompile 操作,可能类名已更改

java - 想要打开日历日期进行一些计算

java - Listener 接口(interface)的 HandleEvent 与 <Selection/Key/Focus>Listener 接口(interface)的特定 <Selection/Key/Focus>Event 之间的区别