hnvn / flutter_image_cropper

A Flutter plugin for Android and iOS supports cropping images
1k stars 392 forks source link

Crash on Android Device when cropping the image in Android version 14 #526

Open variyanirav opened 2 months ago

variyanirav commented 2 months ago

Experiencing Fatal Exception while cropping image on Android 13 and 14, Fatal Exception: java.lang.IncompatibleClassChangeError: Class 'android.content.res.XmlBlock$Parser' does not implement interface 'e8.a' in call to 'int e8.a.l()'

Screenshot 2024-09-11 at 1 08 52 PM Screenshot 2024-09-11 at 1 09 52 PM
lybur commented 1 month ago

For my case, the crash happens regardless of API level, but only with release build. It's working fine during the debugging.

jinosh05 commented 1 month ago

I'm facing the same issue even while debugging on Emulator too

645638180 commented 1 month ago

same issue

Mar-debug commented 1 month ago

I also seem to get crashing on android when debugging or in release -- the android version does not matter for me too, have been having this issue for a while

Edit: I saw that by adding the UCropActivity in my AndroidManifest.xml file the cropper worked and is no longer causing the app to crash Screenshot 2024-10-24 at 10 43 26

Icaroto commented 2 weeks ago

Any other possible solutions for this? My Manifest (in the main folder) contains the activity but I still get the issue on release apk and not on debug

rajeshbdabhi commented 1 week ago

i am facing same issue even i added below code to my manifest

<activity android:name="com.yalantis.ucrop.UCropActivity" android:screenOrientation="portrait" android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>