问题
When I add this library to my Android app project it gives me an error:
"Error retrieving parent for item: No resource found that matches the given name'android:TextAppearance.Material.Widget.Button.Inverse'
(and 3 more errors like that)
It also takes me to v23/values-v23.xml file where this line is marked:
My minSdkVersion is 15, targetSdkVersion 21 and compileSdkVersion 21. And these should stay as they are, I guess?
I am using Android Image Cropper 2.1.4 so i assume it means that it should run fine on compileSdkVersion 21.
Could anyone give me some hints how to solve this problem?
I am a bit new to Android development
回答1:
If you are sure that these errors arise after including this library to you project, than surely this library is making use of some style resource that inherits from the parent resource TextAppearance.Material.Widget.Button.Inverse that does not exist. This issue will be resolved by inheriting from a parent resource that exists (setting targetSDKVersion to at-least what library uses).
Secondly it will be better to change your targetSDKVersion to the newest one and compileSDKVersion to the latest one. That is what one usually does when writing an application. Everyone wants to target all the new devices to be able to use one's application.
So try changing target and compile SDKVerisons. Change SDKVersions to the latest one.
来源:https://stackoverflow.com/questions/42160657/adding-android-image-cropper-library-throws-an-error