错误如下
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"
解决办法如下:
- 提高我的 compileSdkVersion 的版本号;
- 排除第三方依赖中的 appcompat-v7 方法如下
compile ('com.yanzhenjie:permission:1.0.7'){ exclude group: 'com.android.support', module: 'appcompat-v7'}