2014-11-25 70 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

相關問題