未找到与给定名称“android:Theme.Holo.Light.DarkActionBar”匹配的资源
下面是我的xml文件。它告诉我这样的错误:检索项的父项时出错:未找到与给定名称“android:Theme.Holo.Light.DarkActionBar”匹配的资源未找到与给定名称“android:Theme.Holo.Light.DarkActionBar”匹配的资源,android,android-actionbar,Android,Android Actionbar,下面是我的xml文件。它告诉我这样的错误:检索项的父项时出错:未找到与给定名称“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
<!--
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>
右键单击软件包浏览器中的项目>选择属性>选择Android>并将项目构建目标设置为API级别14或更高。将父属性更改为parent=Android:style/Theme.Holo.Light.DarkActionBar右键单击项目->属性->Android,然后添加Android-support-v7-appcompat
您可以从android sdk文件夹->附加->android->支持->v7->appcompat清单中的minSdkVersion是什么?android:minSdkVersion=11 android:targetSdkVersion=17