我設置了style.xml將其設置爲另一個主題風格錯誤:錯誤檢索父的項目:無資源發現在給定的名字相匹配「的Android版本:Theme.DeviceDefault.Light」
但設置之後它給了錯誤
error: Error retrieving parent for item: No resource found that matches the
given name 'android:Theme.DeviceDefault.Light'.
這裏是我的代碼
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="android:Theme.DeviceDefault.Light">
</style>
</resources>
我嘗試了答案太多,但它給出了
[2016-03-08 18:15:53 - com.FF_studio.device_flash_1] F:\ rico \ android \ work \ com.FF_studio.device_flash_1 \ res \ values-v14 \ styles.xml:3:error:Error檢索項目的父項:未找到與給定名稱'android:Theme.DeviceDefault.Light'匹配的資源。 [2016-03-08 18:15:53 - com.FF_studio.device_flash_1] [2016-03-08 18:34:15 - com.FF_studio.device_flash_1] F:\ rico \ android \ work \ com.FF_studio .device_flash_1 \ res \ values-v14 \ styles.xml:3:錯誤:檢索項目的父項時出錯:找不到與給定名稱'android:style/Theme.DeviceDefault.Light'匹配的資源。 [2016年3月8日18點34分15秒 - com.FF_studio.device_flash_1]
嘗試http://stackoverflow.com/questions/18370816/no-resource-找到那匹配給定名稱風格主題全光light-darkacti –
http://stackoverflow.com/questions/9832114/how-to-use-device-default-theme-for-app –
改變你的'父'到另一個,例如,'Theme.AppCompat.Light.DarkActionBar' – Aspicas