升级android sdk到5.0时,创建项目出现错误:No resource found that matches the given name 'android:Widget.Mater
16lz
2021-12-04
升级sdk 到5.0时,创建项目时会多创建一个库项目,叫appcompat_v7。 创建完成后,这个项目可能会报错,诸如出现:No resource found that matches the given name 'android:Widget.Material.ActionButton'等错误。 下面是一些解决方案:
解决方案1: 使用sdk manager下载以下内容:
解决方案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-xml 2.http://stackoverflow.com/questions/26530415/error-in-styles-base-xml-file-android-app-no-resource-found-that-matches-the
解决方案1: 使用sdk manager下载以下内容:
解决方案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-xml 2.http://stackoverflow.com/questions/26530415/error-in-styles-base-xml-file-android-app-no-resource-found-that-matches-the
更多相关文章
- android 横竖屏切换问题的解决方案
- 利用ant对android项目进行测试,为集成测试提供定制信息
- Android中Adapter中edittext,checkbox记住状态解决方案
- android——shortcut
- Android(安卓)之 zygote 与进程创建
- android 使用代码方式创建自定义progressBar——自定义控件学习(
- 【笔记】android sdk集成的eclipse中导入项目
- Android实践项目汇报(二)
- ubuntu创建wifi热点(android可识别)亲测可用