[英]error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.DeviceDefault.Light'
I was setting the style.xml to set it as another theme style 我正在设置style.xml以将其设置为另一个主题样式
but after setting it it give out the error 但设置后它给出了错误
error: Error retrieving parent for item: No resource found that matches the
given name 'android:Theme.DeviceDefault.Light'.
here is my code 这是我的代码
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="android:Theme.DeviceDefault.Light">
</style>
</resources>
i try the answer too but it given out 我也尝试了答案,但给出了答案
[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 retrieving parent for item: No resource found that matches the given name 'android:Theme.DeviceDefault.Light'. [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:错误:检索父项时出错对于项目:找不到与给定名称“ 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: error: Error retrieving parent for item: No resource found that matches the given name 'android:style/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-03-08 18:34:15 - com.FF_studio.device_flash_1] [2016-03-08 18:34:15-com.FF_studio.device_flash_1]
试试这个
parent="android:style/Theme.DeviceDefault.Light"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.