在eclipse上匯入一個專案,styles.xml報了很多錯,查了很多方法,還是剩下五個沒法解決。
error: Error retrieving parent for item: No resource found that matches the given name 'ThemeOverlay.AppCompat.Light'. styles.xml /MarsDaemon-master/res/values line 18 Android AAPT Problem
error: Error: No resource found that matches the given name: attr 'colorPrimaryDark'. styles.xml /MarsDaemon-master/res/values line 7 Android AAPT Problem
error: Error retrieving parent for item: No resource found that matches the given name 'ThemeOverlay.AppCompat.Dark.ActionBar'. styles.xml /MarsDaemon-master/res/values line 16 Android AAPT Problem
error: Error: No resource found that matches the given name: attr 'colorAccent'. styles.xml /MarsDaemon-master/res/values line 8 Android AAPT Problem
error: Error: No resource found that matches the given name: attr 'colorPrimary'. styles.xml /MarsDaemon-master/res/values line 6 Android AAPT Problem
報錯代碼:
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primaryDark</item>
<item name="colorAccent">@color/accent</item>
環境方面:
jdk1.7
api:<uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="21" />
target=android-21
android.library.reference.1=../appcompat_v7
uj5u.com熱心網友回復:
你好,請問你解決了嗎,我也是這樣的錯誤
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/257946.html
標籤:Eclipse
上一篇:決議復雜json
下一篇:二進制運算
