Android SDK 内容加载器因 NullPointerException 而失败

编程入门 行业动态 更新时间:2024-10-19 20:43:06
本文介绍了Android SDK 内容加载器因 NullPointerException 而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我最近刚开始在 Eclipse Helios 中与 Android SDK 和 AVD 管理器交互时出现错误

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

最近有没有其他人遇到过这种情况?它似乎不会影响实际的 Android 开发,但它只是有点烦人.

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

推荐答案

好吧,我不知道我到底做了什么,但我使用了独立的 AVD 管理器(命令行中的/tools/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!

更多推荐

Android SDK 内容加载器因 NullPointerException 而失败

本文发布于:2023-11-12 12:15:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581477.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   内容   Android   SDK   NullPointerException

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!