简体   繁体   English

错误:检索项目父项时出错:找不到与给定名称'android:Theme.DeviceDefault.Light'相匹配的资源

[英]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.

相关问题 键入错误:检索项目的父项时出错:未找到与给定名称&#39;android:Theme.Holo.Light&#39;相匹配的资源。 - Type error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'. 错误:检索父项时出错:找不到与给定名称&#39;android:Theme.Holo.Light.DarkActionBar&#39;匹配的资源 - error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar' 检索项目的父项时出错:找不到与给定名称匹配的资源&#39;@android:style / Theme.AppCompat.Light.DarkActionBar&#39; - Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.AppCompat.Light.DarkActionBar' Android studio错误检索项目的父项:找不到与给定名称“Theme.AppCompat.Light.DarkActionBar”匹配的资源 - Android studio Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar' 检索项目的父项时出错:找不到与给定名称“android:Theme.Material.Light”匹配的资源 - Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light' 寻求帮助:“错误:检索项目父项时出错:找不到与给定名称&#39;Theme.AppCompat.Light&#39;相匹配的资源” - Asking for help: “error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light' ” 错误:检索项目的父项时出错:找不到与给定名称“ Theme.AppCompat.Light.NoActionBar”匹配的资源 - error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.NoActionBar' Eclipse错误创建android应用程序:检索项的父项时出错:找不到与给定名称&#39;Theme.AppCompat.Light.DarkActionBar&#39;匹配的资源 - Eclipse error create android app:Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar' 键入错误:检索项目的父项时出错:未找到与给定名称&#39;Theme.AppCompat.Light&#39;匹配的资源。 styles.xml Android AAPT - Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml Android AAPT 键入错误:检索项的父项时出错:未找到与给定名称&#39;@android:style / Theme.Sherlock.Light&#39;相匹配的资源 - Type error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Sherlock.Light'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM