No resource found that matches the given name 'android:Widget.Material.A

来源:互联网 发布:软件shop floor editor 编辑:程序博客网 时间:2024/04/29 10:39
升级sdk 到5.0时,创建项目时会多创建一个库项目,叫appcompat_v7。创建完成后,这个项目可能会报错,诸如出现:No resource found that matches the given name 'android:Widget.Material.ActionButton'等错误。下面是一些解决方案:

解决方案1:使用sdk manager下载以下内容:



t-size:13.63636302948px;line-height:19.0909080505371px;">
解决方案2:如果你不想创建appcompat_v7,你可以在创建项目时将minimum Required SDK设置为4.1以上,这时就不再生成appcompat_v7项目了,然后你再去清单文件中将minSdkVersion还原为8就行了.


参考资料:1.http://stackoverflow.com/questions/26457096/appcompat-v7-r21-returning-error-in-values-xml2.http://stackoverflow.com/questions/26530415/error-in-styles-base-xml-file-android-app-no-resource-found-that-matches-the

以上就介绍了升级android sdk到5.0时,创建项目出现错误:No resource found that matches the given name 'android:Widget.Material.A,包括了方面的内容,希望对Android开发有兴趣的朋友有所帮助。


转载  http://www.codes51.com/article/detail_95795.html

0 0
原创粉丝点击