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开发中常见的资源缺失错误问题,通过调整appcompat-v7依赖版本从23.0.1到22.2.1,并进行清理和重建操作,成功解决了编译错误。
10万+

被折叠的 条评论
为什么被折叠?



