有个项目跟进,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">
本人经验,仅供参考!