如何在ubuntu中使用eclipse luna配置android SDK?

时间:2014-12-17 07:01:32

标签: java android eclipse ubuntu configuration

我已经下载了eclipse luna然后我已经doenload android-sdk-linux然后我运行tools/android update sdk --no-ui这个命令我下一步做了什么所以我在我的eclipse中开发了android应用程序。

我尝试导入我的旧android项目,这会产生如下错误:

Description Resource    Path    Location    Type
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project    google-play-services_lib        Unknown Java Problem
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project    gu10science     Unknown Java Problem
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files    TestActivity.java   /gu10science/src/com/sparrow/gu10science    line 1  Java Problem
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files    UnusedStub.java /google-play-services_lib/src/android   line 1  Java Problem

1 个答案:

答案 0 :(得分:1)

您可以在此处获得答案:https://stackoverflow.com/a/9341736/1974306

  

(...)选择Android API版本(设置为另一个并且有效,然后恢复您想要的并验证它 - >它将强制Eclipse重新加载API)。 (...)