’com.android.support:appcompat-v7:version‘不兼容

来源:互联网 发布:电视连接网络怎么设置 编辑:程序博客网 时间:2024/06/08 03:21

错误如下

E:\UamaWork\universal\app\build\intermediates\res\merged\debug\values-v24\values-v24.xml

Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.


我报这个错误的原因的因为我在moudle中引用了第三方依赖,

它的“com.android.support:appcompat-v7:25.3.1"版本高于我当前的版本,所以导致我的版本不一致,而不能使用 "compileSdkVersion 23"


解决办法如下:

1. 提高我的compileSdkVersion 的版本号

2.排除第三方依赖中的appcompat-v7,方法如下

compile ('com.yanzhenjie:permission:1.0.7'){    exclude group: 'com.android.support', module: 'appcompat-v7'

0 0