2014-11-25 124 views
3

下面是我的xml文件。它让我错误地说,“错误:错误检索项目的父项:找不到匹配给定的资源名称'android:Theme.Holo.Light.DarkActionBar'。“找不到与给定名称匹配的资源'android:Theme.Holo.Light.DarkActionBar'

<!-- 
    Base application theme for API 14+. This theme completely replaces 
    AppBaseTheme from BOTH res/values/styles.xml and 
    res/values-v11/styles.xml on API 14+ devices. 
--> 

<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar"> 
    <!-- API 14 theme customizations can go here. --> 
</style> 

+0

你的minSdkVersion在清单中是什么? – Paritosh 2014-11-25 08:43:43

+0

android:minSdkVersion =“11” android:targetSdkVersion =“17” – 2014-11-25 08:47:28

回答

3

变化parent属性parent="android:style/Theme.Holo.Light.DarkActionBar"

3

右键单击在Package Explorer项目>选择属性>选择Android的>,并设置项目建设目标API级别14或更高。

+0

它为我工作。 – 2014-11-26 03:02:42

0

右键点击你的项目 - >属性 - > Android的,然后添加Android的支持-V7-程序兼容性

您可以从您导入此库Android的SDK文件夹 - > extras-> android-> support-> v7-> appcompat

相关问题