appcompat-v7 版本造成的问题No resource found that matches the given name 'android:TextAppearance.Mater
16lz
2021-01-23
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 edittext 输入长度限制并提示
- Android 提示框
- android退出activity提示再按一次返回键
- Android Studio 错误 Duplicate files copied in APK META-INF/L
- android 自动提示 中文
- Android Studio多个Module依赖同一个jar的解决方案
- Caused by: java.lang.ClassNotFoundException: Didn’t find cl
- AndroidStudio安装apk时失败时提示INSTALL_PARSE_FAILED_NO_CERT
- Android之adt 23找不到NDK路径设置解决方案