【问题标题】:error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.DeviceDefault.Light'错误:检索项目的父项时出错:找不到与给定名称“android:Theme.DeviceDefault.Light”匹配的资源
【发布时间】:2016-03-08 10:22:25
【问题描述】:

我正在设置 style.xml 以将其设置为另一种主题样式

但是设置后会报错

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: 错误:检索项目的父项时出错:找不到与给定名称“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-03-08 18:34:15-com.FF_studio.device_flash_1]

【问题讨论】:

标签: android


【解决方案1】:

试试这个

parent="android:style/Theme.DeviceDefault.Light"

【讨论】:

    猜你喜欢
    • 2013-10-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-27
    • 2014-06-04
    • 2017-02-10
    • 2017-06-27
    相关资源
    最近更新 更多