Ravi
Ravi

Reputation: 960

Android : Error retrieving parent for item

I am using this compile 'com.miguelcatalan:materialsearchview:1.3.0' library and when I compile it with gradle it gives me this error

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

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

Source : https://github.com/MiguelCatalan/MaterialSearchView

Please help me solve it and tell me why this is happening

Upvotes: 2

Views: 355

Answers (1)

Gabriele Mariotti
Gabriele Mariotti

Reputation: 363439

This library has this dependency:

compile 'com.android.support:appcompat-v7:23.1.0'

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

The reason of this issue is your compileSdk. The appcompat v23 requires

compileSdkVersion 23

There is a general rule for support libraries:

The library major version number is the minimun compile sdk version.

Upvotes: 3

Related Questions