2015-02-07 20 views
0

我们尝试添加项目到eclipse。现在我们得到了错误此我们在style.xml文件中出错当我们导入现有的项目到eclipse

error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.

然后我们googled.We遵循了这一

Right click android-support-v7-mediarouter project, select Properties 
Select Android 
In the Library section at the bottom, click Add.... 
Select android-support-v7-appcompat in the dialog. 
Click Apply. 
Click OK. 
Do a clean build on the android-support-v7-mediarouter project. 

但我们没有任何luck.So一个指导我如何解决我的问题。

+0

你导入appcomp lib添加到您的项目? – Psypher 2015-02-07 13:46:08

+0

@Ranjith不,谢谢回复我们新到eclipse所以请指导我如何添加appcomp lib到我的项目 – 2015-02-07 13:57:31

回答

-1

确保您使用SDK管理器下载了Android支持库

在应用程序项目的根目录下创建一个libs/目录。 将JAR文件从您的Android SDK安装目录(例如,<sdk>/extras/android/support/v4/android-support-v4.jar)复制到您的应用程序的项目libs/目录中。

右键单击JAR文件并选择Build Path > Add to Build Path

欲了解更多信息:

https://developer.android.com/tools/support-library/setup.html

+0

感谢您的回复我们将尝试 – 2015-02-07 14:23:58

+0

我们尝试了你说的.xml错误解决了但我们得到了新的错误 D :\ Softwares \ Android \ Practice \ appcompat_v7 \ res \ values-v21 \ themes_base.xml:191:错误:错误:找不到与给定名称相匹配的资源:attr'android:colorPrimaryDark'。如果您有任何关于此事的信息,请通知我 – 2015-02-07 15:39:44

+0

使用API​​ 21编译您的项目,以解决该错误。 – Psypher 2015-02-07 16:54:37

相关问题