解析Android sdk内容并在eclipse中初始化java工具时出错 [英] Error with parsing Android sdk content and initializing java tooling in eclipse

查看:229
本文介绍了解析Android sdk内容并在eclipse中初始化java工具时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次打开Eclipse时,我会收到以下错误信息:

Every time I open Eclipse, I get the following error messages:

Android SDK内容加载器:
parseSdkContent失败java.lang.NullPointerException

Android SDK Content Loader: parseSdkContent failed java.lang.NullPointerException

初始化Java工具
在初始化Java工具期间发生内部错误。 java.lang.NullPointerException

Initializing Java Tooling An internal error occured during: "Initializing Java Tooling". java.lang.NullPointerException

加载Android 2.2的数据
解析android-8的数据失败java.lang.NullPointerException

Loading data for Android 2.2 Parsing Data for android-8 failed java.lang.NullPointerException

加载Android 2.3.3的数据
解析android-10的数据失败java.lang.NullPointerException

Loading data for Android 2.3.3 Parsing Data for android-10 failed java.lang.NullPointerException

加载Google API的数据( Google Inc.)
Google公司解析数据:Google API:8失败java.lang.NullPointerException

Loading data for Google APIs (Google Inc.) Parsing Data for Google Inc.: Google APIs:8 failed java.lang.NullPointerException

请参阅链接截图:
< a href =https://i.stack.imgur.com/lhhQQ.png =nofollow noreferrer> http://i.stack.imgur.com/lhhQQ.png

(我正在使用OS X Lion和Eclipse Helios)

(I am using OS X Lion, and Eclipse Helios)

首先我读了一些帖子,说是AVD。 in。文件在.android配置文件导致麻烦。我尝试删除 Android SDK内容加载程序使用NullPointerException失败的所有整个.android配置文件文件夹。这没有纠正我的问题。

First i read some posts saying that it was the AVD.ini file in the .android profile that was causing the trouble. I tried deleting all the entire .android profile folder as suggested in Android SDK Content Loader failing with NullPointerException. This didn't correct my problem.

我尝试删除整个Android SDK文件夹,再次下载并安装了几个Android版本。仍然有相同的错误消息...

I tried deleting the entire Android SDK folder, downloaded it again and installed a couple of Android versions through it. Still the same error messages...

为了确保我没有任何旧的插件或问题,我卸载了eclipse,再次下载并安装再次安装Android插件。 (所以插件是最新的)。

To ensure that I didn't have any old plugins or something that were the issue, I uninstalled eclipse, downloaded it again and installed the Android plugin again. (So the plugin is up to date).

当我进入我的一个Android项目时,我在使用R文件访问资源的地方收到错误消息。常规Java项目工作正常,但所有Android项目都会获得小红色框,并带有白色十字架。自从昨天以来我一直在寻找一个解决这个问题的解决方案,但是在这一点上我完全没有任何帮助,感谢任何帮助我可以得到!

When I go into one of my Android projects, I get error messages on places where I acces resources by using the R file. Regular Java projects work fine, but all Android projects gets small red boxes with white crosses on them. I have been searching for a solution to this problem since yesterday, but at this point I'm completely qlueless and would appreciate any help I can get!

推荐答案

关闭所有打开的项目并退出Eclipse。现在可以打开Eclipse而不会收到错误。开始逐一打开您的项目,找出哪一个导致问题。这很可能是因为您在AVD管理器中删除了设备配置文件。

Close all open projects and exit Eclipse. Now you can open Eclipse without getting the error. Start opening your projects one by one to find which one causes the problem. This is most likely because you deleted a Device profile inside the AVD manager.

这篇关于解析Android sdk内容并在eclipse中初始化java工具时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆