Adding Android Image Cropper library throws an error

末鹿安然 提交于 2019-12-12 03:09:14

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!