"无法获取项目&QUOT系统库;之后,我升级到Android 2.3的SDK和ADT 8.0 [英] "Unable to get system library for project" after I upgraded to Android SDK 2.3 and ADT 8.0
问题描述
今天我升级到Android SDK 2.3,我还升级了Eclipse插件Androi开发工具8.0(从0.9.9)。我也升级我的Java开发工具包1.6_22。
现在在Eclipse中,我得到的很多错误在我所有的Android项目。
该错误信息是这样的:
该java.lang.Object类型不能得到解决。这是间接地从必需的.class文件中引用。
我怎样才能解决这个问题,所以我可以再次使用我的Android项目?
在这些项目的构建路径,我没有任何引用到的android.jar
但消息:
无法获取项目的系统库
这是相当困难的回答,给您提供的信息有限。下面是一些建议:
-
请确保适当的
的android.jar
是在你的构建路径,因为这是的java.lang.Object
将来自 -
做一个项目>清洁,以确保您有1.6
的.class
文件,如果这是问题的一部分。 -
试着从头创建一个新的项目,看看是否能工程。
Today I upgraded to Android SDK 2.3 and I also upgraded the Eclipse Plugin Androi Developer Tools 8.0 (from 0.9.9). I also upgraded my Java Development Kit to 1.6_22.
Now in Eclipse I get many errors in all my Android projects.
The error messages are like:
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files.
How can I fix this so I can use my Android projects again?
In the Build Path for these projects, I don't have any references to an android.jar
but a message:
Unable to get system library for project
That is rather difficult to answer, given the limited information you have supplied. Here are some suggestions:
Make sure that an appropriate
android.jar
is in your build path, since that is wherejava.lang.Object
would come from.Do a Project > Clean, to make sure you have 1.6
.class
files, in case that is part of the problem.Try creating a new project from scratch and see if that works.
这篇关于"无法获取项目&QUOT系统库;之后,我升级到Android 2.3的SDK和ADT 8.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!