JakeWharton / RxBinding

RxJava binding APIs for Android's UI widgets.
Apache License 2.0
9.68k stars 971 forks source link

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

Closed mateusgrb closed 7 years ago

mateusgrb commented 7 years ago

The project I'm working on is stuck on compileSdkVersion 23 for dependency reasons. My buildToolsVersionis set to 25.0.2. Under my dependencies I have compile 'com.android.support:support-v4:23.4.0'.

With only compile 'com.jakewharton.rxbinding2:rxbinding-support-v4:2.0.0', everything works good.

Now I want to use RxSearchViewfrom appcompat-v7. When I add compile 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.0.0', I get these errors:

/Users/a/Documents/project/build/intermediates/res/merged/armv7/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'.

It seems like the latest version requires compileSdkVersion higher than 23. Is there anyway to workaround that?

JakeWharton commented 7 years ago

rxbinding-appcompat-v7 is pulling in a newer version of AppCompat which is what is causing this problem. You can use a Gradle ResolutionStrategy to force the support library versions you are pulling in to an older version (like this).