這是我的res/values/themes.xml中的代碼。我的minSdkVersion設置爲11. M獲取錯誤,作爲錯誤檢索項目的父項:找不到與給定名稱匹配的資源@ style/Theme.Holo。檢索項目的父項時出錯:找不到與給定名稱匹配的資源@ style/Theme.Holo
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- the theme applied to the application or activity -->
<style name="CustomActionBarTheme"
parent="@style/Theme.Holo">
<item name="android:actionBarStyle">@style/MyActionBar</item>
<item name="android:actionBarTabTextStyle">@style/MyActionBarTabText</item>
<item name="android:actionMenuTextColor">@color/actionbar_text</item>
</style>
<!-- ActionBar styles -->
<style name="MyActionBar"
parent="@style/Widget.Holo.ActionBar">
<item name="android:titleTextStyle">@style/MyActionBarTitleText</item>
</style>
<!-- ActionBar title text -->
<style name="MyActionBarTitleText"
parent="@style/TextAppearance.Holo.Widget.ActionBar.Title">
<item name="android:textColor">@color/actionbar_text</item>
</style>
<!-- ActionBar tabs text styles -->
<style name="MyActionBarTabText"
parent="@style/Widget.Holo.ActionBar.TabText">
<item name="android:textColor">@color/actionbar_text</item>
</style>
</resources>
可能的重複的[錯誤:錯誤檢索項的父項:沒有發現資源匹配給定的名稱'android:Theme.Holo'](http://stackoverflow.com/questions/12295018/error-error-retrieving-parent -for-item-no-resource-found-that-matches-the-give) –