升级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. android 横竖屏切换问题的解决方案
  2. 利用ant对android项目进行测试,为集成测试提供定制信息
  3. Android中Adapter中edittext,checkbox记住状态解决方案
  4. android——shortcut
  5. Android(安卓)之 zygote 与进程创建
  6. android 使用代码方式创建自定义progressBar——自定义控件学习(
  7. 【笔记】android sdk集成的eclipse中导入项目
  8. Android实践项目汇报(二)
  9. ubuntu创建wifi热点(android可识别)亲测可用

随机推荐

  1. android 调用系统相机程序,存放文件夹创建
  2. Android聊天软件开发(基于网易云IM即时通
  3. Android requestFeature() must be calle
  4. android ping 命令使用问题
  5. Android System.gc()与Runtime.getRuntim
  6. Android 配置 之 AndroidManifest.xml 出
  7. ubuntu 12.04 下安装android编译环境
  8. cordova打包android apk
  9. Android输入法的显示与隐藏
  10. Android ImageView去掉周围的白边