/路径/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res/values-v23/values-v23.xml
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
这种类似的数据错误,一定要注意一下流程,
0、问题的起因,是因为我自己使用到了appcompat
1、values-v23.xml这里23就是API的版本,compileSdkVersion 23 ,buildToolsVersion '23.0.1'
2、manifest文件中, <uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="23" />
配置相同就好。
3、同步一下,我这边问题解决了,不知道你有没有解决。
解释:
这是API 23(Android 6.0)中的资源文件,而查看build.gradle,编译的SDK只是为21,我们可以尝试将compileSdkVersion设为23。
同样的问题,如果不想下载API 23怎么解决呢?
降低appcompat的版本:将build.gradle里面的dependencies对应的appcompat版本降低:
将compile 'com.android.support:appcompat-v7:23.0.1'的版本改为:'com.android.support:appcompat-v7:22.2.1(对应版本即可)。
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
这种类似的数据错误,一定要注意一下流程,
0、问题的起因,是因为我自己使用到了appcompat
1、values-v23.xml这里23就是API的版本,compileSdkVersion 23 ,buildToolsVersion '23.0.1'
2、manifest文件中, <uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="23" />
配置相同就好。
3、同步一下,我这边问题解决了,不知道你有没有解决。
解释:
这是API 23(Android 6.0)中的资源文件,而查看build.gradle,编译的SDK只是为21,我们可以尝试将compileSdkVersion设为23。
同样的问题,如果不想下载API 23怎么解决呢?
降低appcompat的版本:将build.gradle里面的dependencies对应的appcompat版本降低:
将compile 'com.android.support:appcompat-v7:23.0.1'的版本改为:'com.android.support:appcompat-v7:22.2.1(对应版本即可)。