ArthurHub / Android-Image-Cropper

Image Cropping Library for Android, optimized for Camera / Gallery.
Apache License 2.0
6.4k stars 1.38k forks source link

Update CropImage.java #859

Open hueimin426 opened 2 years ago

hueimin426 commented 2 years ago

To update new changes for Java 11

hueimin426 commented 2 years ago

I got this error java.lang.RuntimeException: Failed to load sampled bitmap: file:///storage/emulated/0/Android/data/com.example.fyp1/cache/pickImageResult.jpeg /storage/emulated/0/Android/data/com.example.fyp1/cache/pickImageResult.jpeg: open failed: ENOENT (No such file or directory)

I am using Java, the latest canhub using Kotlin doesn't work. Hope this can solve the problem.

I refer to this link https://github.com/ArthurHub/Android-Image-Cropper/issues/416