当前位置:   article > 正文

Android报错记录:error: Error retrieving parent for item: No resource found that matches the given name.._apktool styles.xml:1280: error: error retrieving p

apktool styles.xml:1280: error: error retrieving parent for item: no resourc

有个项目跟进,import时style.xml中出现错误:error: Error retrieving parent for item: No resource found that matches the given

 name   'Theme.AppC.Title' 。上网查了下,发现是由于以下原因:

android2.1中的某些API(包括类方法或者XML属性)更换成android2.2时,它们的路径已经发生了改变,从而导致编译器无法找到它

们,所以编译无法通过。

所以解决方法如下:

打开style.xml文件,将<style name="AppTheme" parent=" ">中的parent的内容换成android:TextAppearance.WindowTitle,即:

<style name="AppTheme" parent="android:TextAppearance.WindowTitle">




本人经验,仅供参考!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/223208
推荐阅读
相关标签
  

闽ICP备14008679号