CanHub / Android-Image-Cropper

Image Cropping Library for Android, optimised for Camera / Gallery.
Apache License 2.0
1.24k stars 258 forks source link

[BUG] - Fatal Exception: java.lang.RuntimeException Unable to start activity ComponentInfo{com.knudge.ielts/com.theartofdev.edmodo.cropper.CropImageActivity}: android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.knudge.ielts/cache/pickImageResult.jpeg exposed beyond app through ClipData.Item.getUri() #363

Closed AmolPardeshi99 closed 2 years ago

AmolPardeshi99 commented 2 years ago

🚨🚨 Before open the ticket please check if you can reproduce the bug in the sample code

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Media Please add screenshots and/or screen recordings to help explain your problem. We cannot help without more information

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

AmolPardeshi99 commented 2 years ago

Caused by android.os.FileUriExposedException file:///storage/emulated/0/Android/data/com.knudge.ielts/cache/pickImageResult.jpeg exposed beyond app through ClipData.Item.getUri()

Canato commented 2 years ago

Hey @AmolPardeshi99 looks like you are using an old library version and you did not fill the template.

Please update to the latest version. Will close this issue, when you open please fill the template with the important information