将现有项目导入eclipse

时间:2014-06-17 11:46:57

标签: android eclipse

当我想在我的笔记本电脑上导入和存在我的eclipse时,我遇到了很多错误。我尝试了几种解决方案但仍然遇到这些错误。我希望有人可以帮助我

http://i57.tinypic.com/w171n4.png

提前致谢!

Description Resource    Path    Location    Type
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml  /WowQuiz/res/values line 9  Android AAPT Problem
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml  /WowQuiz/res/values-v11 line 9  Android AAPT Problem
The method startActivity(Intent) is undefined for the type MainActivity MainActivity.java   /WowQuiz/src/com/example/wowquiz    line 165    Java Problem
The method startActivity(Intent) is undefined for the type InfoScreen   InfoScreen.java /WowQuiz/src/com/example/wowquiz    line 34 Java Problem

3 个答案:

答案 0 :(得分:0)

Dunno这是否是问题,你把支持v7库放在项目中 d:\ Android的软件开发工具包\演员\机器人\ SUPPORT \ V7 \程序兼容性\库 据我所知,appcompat附带v7库..只需添加库并添加到构建路径并尝试。

答案 1 :(得分:0)

您是否已将ActionBarAppCompat库导入工作区,然后将其添加到主项目中。

选择项目--->右键单击 - >属性 - >在左侧窗格中选择Android --->转到右侧 - >点击添加--->现在选择Appcompat Library并单击确定

答案 2 :(得分:0)

这可能会有所帮助(使用Eclipse Mars 4.5):

* File > Import...
* General > Existing Projects into Workspace > Next
* Select root directory (and browse to project)
* Untick Copy projects into workspace
* Untick Add project to working sets
* Finish