无法为eclipse ide上的项目获取系统库 [英] unable to get system library for the project on eclipse ide
问题描述
我正在开发一个android教程,它要我从另一个导入库项目进口工作,项目工程正常。但是我注意到这样做使得我的其他几个项目(使用Android 2.1的项目)显然混乱了构建路径。现在,而不是在 gen
文件夹下看到Google API [Android 2.1],我看到 无法获取项目的系统库 / code>
即可。
I was working on an android tutorial and it wanted me to import the library from another project .The import worked and the project works correctly. But I noticed that doing that messed up several of my other projects (the ones that use Android 2.1) by apparently messing with the build path. Now instead of seeing "Google APIs [Android 2.1]" under the gen
folder I see "Unable to get system library for project"
.
我验证了以下内容:
我右键点击了项目,到属性
我看到正确的项目构建目标被检查(Google API [Android 2.1]),但是无法获得项目的系统库仍然显示在资产上方文件夹和下面的根和Android依赖关系。清理所有项目没有帮助。
I right-clicked the project and went to Properties
I see that the correct Project Build Target is checked(Google APIs [Android 2.1]), but "Unable to get system library for project" is still shown above the assets folder and below gen and Android Dependencies. Cleaning all projects doesn't help.
如何解决这个问题?
有一种方法可以在全球解决这个问题,还是要一个接一个呢?
How can I fix this problem? is there a way to fix this issue globally or do I have to do it one by one?
推荐答案
有同样的问题。尝试
- 右键单击您的项目
- 转到属性
- 单击Android部分
- 选择不同的目标api(假设已经选择了一个,因为我的是 - 否则,选择所需的,然后跳转到步骤9)
- 单击确定
- 再次执行1-3步
- 选择您的原始目标api
- 单击确定
- 清理并构建项目
- Right click on your project
- Go to properties
- Click the Android section
- Select a different target api (assuming one is already selected, as mine was - otherwise, select the one you want and jump to step 9)
- Click OK
- Do steps 1-3 again
- Select your original target api
- Click OK
- Clean and build your project
无论如何,为我工作。
从以下方式导出解决方案:
无法获得项目的系统库之后升级到Android SDK 2.3和ADT 8.0
Derived the solution from: "Unable to get system library for project" after I upgraded to Android SDK 2.3 and ADT 8.0
这篇关于无法为eclipse ide上的项目获取系统库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!