导入安卓工程出现No resource found that matches the given name。

来源:互联网 发布:pre软件c4埋雷 编辑:程序博客网 时间:2024/05/21 17:44

导入一个新工程时出现大量的错误:Description Resource Path Location Type

error: Error retrieving parent for item: No resource found that matches the given name ‘android:Widget.Material.ActionButton’. styles_base.xml /appcompat_v7/res/values-v21 line 75 Android AAPT Problem,

原因是依赖的support-v7工程有错误,在res/values-ldltr-v21中的style-base文件中如下一行有错误,提示找不到该style:

这里写图片描述
注意到该style只在v21-22中才有,所有找不到,而我的SDK编译版本是20,所以改成SDK21或22即可解决。

0 0