无法获得系统库对Eclipse IDE的项目 [英] unable to get system library for the project on eclipse ide

查看:145
本文介绍了无法获得系统库对Eclipse IDE的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做一个机器人的教程,它想让我从另一库项目.The进口工作和项目工作正常。但我注意到,这样做搞砸了我的几个其他项目通过构建路径显然搞乱(使用Android 2.1系统的那些)。现在,而不是看到谷歌的API [Android 2.1系统]的文件夹下我看到的 无法获取项目的系统库

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".

我验证了以下内容:

我右键单击该项目,并赴属性我看到正确的项目建设目标被选中(谷歌的API [安卓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?

推荐答案

我有同样的问题。尝试

  1. 右键点击您的项目
  2. 进入属性
  3. 点击Android的部分
  4. 选择不同的目标API(假设已被选中,因为我的是 - 否则,选择一个你想要的,并跳转到第9步)
  5. 单击OK(确定)
  6. 请重新步骤1-3,
  7. 选择您的原定目标API
  8. 单击OK(确定)
  9. 清理并生成项目

为我工作,无论如何。

源出的解决方案: <一href="http://stackoverflow.com/questions/4372574/unable-to-get-system-library-for-project-after-i-upgraded-to-android-sdk-2-3-a?rq=1">"Unable拿到项目和QUOT系统库;之后,我升级到Android 2.3的SDK和ADT 8.0

这篇关于无法获得系统库对Eclipse IDE的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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