Yalantis/uCrop

Crash with NotFoundException on the API 16 or lower

rezaiyan opened this issue · 6 comments

current behavior
If the option of setToolbarCancelDrawable doesn't set or set with a vector drawable
It will crash on the API 16 or lower

Evidence
com.yalantis.ucrop.UCropActivity}: android.content.res.Resources$NotFoundException: File res/drawable/ucrop_ic_cross.xml from drawable resource ID #0x7f08022d

Version: 2.2.4

Device Info
Name: GT-I8200
Android version: 4.2.2

have you upgraded to AndroidX? I believe you need to do that for this library to work. I had a similar issue when I realized I wasn't using AndroidX

have you upgraded to AndroidX? I believe you need to do that for this library to work. I had a similar issue when I realized I wasn't using AndroidX

Yes, I do.

Any progress with this issue?

asme any progress on the issue ?

I have the same problem with Android 4.4, and my project is updated to AndroidX. Is there any solution or work around?

I solved this issue removing from the gradle file:
implementation 'com.github.yalantis:ucrop:2.2.4'

And importing the source code into my project as a module.