2015-12-10 26 views
1

當我在eclipse中導入我的Android項目時,出現以下錯誤。類型錯誤:錯誤檢索的項目父:沒有資源發現在給定的名字「機器人:Theme.Holo.Light」匹配。

說明資源路徑位置類型 錯誤:檢索項的父項時出錯:找不到與給定名稱'android:Theme.Holo.Light'匹配的資源。 styles.xml/INU_app_new/RES /值-V11線7的Android AAPT問題

這是錯誤的源代碼。

style.xml

<!-- 
    Base application theme for API 11+. This theme completely replaces 
    AppBaseTheme from res/values/styles.xml on API 11+ devices. 
--> 
<style name="AppBaseTheme" parent="android:Theme.Holo.Light"> 
//That is the error line. 
    <!-- API 11 theme customizations can go here. --> 
</style> 

什麼建議嗎?

回答

0

這似乎是可以複製現有的問題,但nevermnid。

在這裏你會找到如何解決您的問題:

No resource found that matches the given name 'android:Theme.Holo.Light'

No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'

如果您在Eclipse是usung搖籃,你也可以嘗試在build.gradle這樣的設定值(更新的API 21):

android { 
    compileSdkVersion 21 
    buildToolsVersion "21.1.2" 
    defaultConfig { 
    minSdkVersion 21 //Depends on the min version you would like to support 
    targetSdkVersion 21 
    versionCode 1 
    versionName "1.0" 
} 
+1

我已經找到了答案。 API編號是錯誤的。但是,非常感謝您的建議。 – user5666418

相關問題