2016-03-08 19 views
0

我设置了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]

+0

尝试http://stackoverflow.com/questions/18370816/no-resource-找到那匹配给定名称风格主题全光light-darkacti –

+1

http://stackoverflow.com/questions/9832114/how-to-use-device-default-theme-for-app –

+0

改变你的'父'到另一个,例如,'Theme.AppCompat.Light.DarkActionBar' – Aspicas

回答

0

尝试用这种

parent="android:style/Theme.DeviceDefault.Light" 
相关问题