appcompat-v7 版本造成的问题No resource found that matches the given name 'android:TextAppearance.Mater
16lz
2022-06-14
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一下! 更多相关文章
- Android手动画柱状图的例子
- android MTK modem编译方法
- Android(安卓)创建菜单
- Android缺少awk:安装busybox
- Android(安卓)8.1 设置中首选网络类型缺少LTE
- 自定义progressbar 样式
- android 工程里缺少 R.java 文件原因和解决方法
- Xamarin 2.0编译报错缺少Google Maps Library
- 使用kotlin开发android