Eclipse的ADT 22.6.2仍然给出了错误"显示java.lang.NullPointerException" [英] Eclipse ADT 22.6.2 still gives the error "java.lang.NullPointerException"
问题描述
这个问题应该是固定的最新ADT版本(22.6.2),但我仍然收到当我试图创建一个空的Android应用程序项目相同的错误。 这是确切的错误:
This issue is supposed to be fixed by the latest ADT release(22.6.2), but I'm still receiving the same error when I'm trying to create an empty Android Application Project. Here is the exact error:
错误在生成过程中发生的。 错误的项目MyFirstApp跑商的Android资源管理器。 显示java.lang.NullPointerException
Errors occurred during the build. Errors running builder 'Android Resource Manager' on project 'MyFirstApp'. java.lang.NullPointerException
我失去了一些东西呢?顺便说一句,我使用OSX-Maverics 10.9.2
Am I missing something here? btw I'm using OSX-Maverics 10.9.2
推荐答案
ADT包不与甲骨文的Java SE 7 JDK的工作,与在Android应用程序项目向导的NPE失败。
ADT bundle does not work with the Oracle Java 7 SE JDK, failing with an NPE in the Android Application Project wizard.
下面是一个解决方法,可以让你保持Java 7的默认值,但与Java 6的运行ADT你同时安装时。造就$ ADT_DIR /月食/ Eclipse.app /内容/ MacOS /作用的eclipse.ini在编辑器中。 (Eclipse.app是一个隐藏目录)
Here's a workaround that lets you keep Java 7 as the default but run ADT with Java 6 when you have both installed. Bring up $ADT_DIR/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini in an editor. (Eclipse.app is a hidden directory)
在-vmargs行前,将以下两行:
Before the -vmargs line, insert these two lines:
-vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java
这篇关于Eclipse的ADT 22.6.2仍然给出了错误"显示java.lang.NullPointerException"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!