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

查看:17
本文介绍了在 Eclipse 中解析 A​​ndroid sdk 内容和初始化 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 Inc. 解析数据:Google APIs:8 failed java.lang.NullPointerException

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

截图见链接:http://i.stack.imgur.com/lhhQQ.png

(我使用的是 OS X Lion 和 Eclipse Helios)

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

首先,我读了一些帖子,说是 .android 配置文件中的 AVD.ini 文件导致了问题.我尝试按照 Android SDK Content Loader 失败并出现 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.

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

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