Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.Error:Execution failed for task ':app:processDebugResources'.

错误log提示如上所示:

出现原因,由于v7包的23.x版本中缺少部分资源所致。

解决方案:

build.gradle文件中,将

dependencies {    compile fileTree(dir: 'libs', include: ['*.jar'])    compile 'com.android.support:appcompat-v7:23.0.1'}

修改为:

dependencies {    compile fileTree(dir: 'libs', include: ['*.jar'])    compile 'com.android.support:appcompat-v7:22.2.1'}
然后clean和Rebuild一下!


更多相关文章

  1. Android手动画柱状图的例子
  2. android MTK modem编译方法
  3. Android(安卓)创建菜单
  4. Android缺少awk:安装busybox
  5. Android(安卓)8.1 设置中首选网络类型缺少LTE
  6. 自定义progressbar 样式
  7. android 工程里缺少 R.java 文件原因和解决方法
  8. Xamarin 2.0编译报错缺少Google Maps Library
  9. 使用kotlin开发android

随机推荐

  1. Android(安卓)TextView的drawLeft、drawR
  2. Android如何打开/关闭系统解锁服务?—典型
  3. Android(安卓)quikboot
  4. 【quickhybrid】H5和Native交互原理
  5. 安卓unit与instrumentation测试教程
  6. Android异步消息处理机制完全解析
  7. Android进阶练习 - 高效显示Bitmap(管理Bi
  8. Google 披露 Android(安卓)5.0 的三大安
  9. 【Android】避免图片等资源泄露在系统图
  10. Android核心分析 ----- Android电话系统-