Android SDK中的内容加载失败并抛出NullPointerException异常抛出、加载、异常、内容

2023-09-12 03:14:21 作者:漸入瘋狂

我刚刚开始得到一个错误,任何时候我在Eclipse中太阳神

I've just recently started getting an error any time I interact with the Android SDK and AVD Manager in Eclipse Helios

我试着重新安装Eclipse插件和Android SDK,但无济于事。

I've tried reinstalling the Eclipse plugin and the Android SDK but to no avail.

如果我去已安装的程序包页面,然后单击刷新(或安装或删除程序包),我得到一个弹出框说

If I go to the "Installed packages" page and click refresh (or install or remove a package) I get a popup box saying that

'Android SDK Content Loader' has encountered a problem. 
parseSdkContent failed 
java.lang.NullPointerException.

下面是完整的日志:

堆栈跟踪

java.lang.NullPointerException
   at com.android.ide.eclipse.adt.internal.sdk.Sdk.loadTarget(Unknown Source)
   at com.android.ide.eclipse.adt.AdtPlugin$10.run(Unknown Source)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

会话数据

eclipse.buildId=M20100909-0800
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_IE
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.java.product

有其他人最近就遇到了这样? 它似乎没有被影响到实际的Andr​​oid开发,但它只是有点讨厌。

Has anyone else encountered this recently? It doesn't seem to be affecting actual Android development but its just kinda annoying.

推荐答案

好,我不知道到底是什么我没有,但我用的是独立的AVD管理器(/工具/ Android的命令行)和未安装的最开从Android的SDK工具,修订版2。 然后重新安装我想要的部件和错误似乎已经消失...... 糊涂!

Ok I've no idea exactly what I did but I used the standalone AVD manager (/tools/android from the command line) and un-installed most apart from the "Android SDK Tools, revision 2". And then reinstalled the parts I wanted and the error seems to have gone away.. Confused!

 
精彩推荐
图片推荐