Crash at MediaUtil.kt line 76
antranvn opened this issue · 0 comments
I'm using the latest TedImagePicker version 1.1.4 in my application.
I saw several crashes in the crashlytics. I'm trying to reproduce this issue but it is not success so far.
Below is the log file from crashlytics.
Fatal Exception: java.lang.IllegalArgumentException Failed to find configured root that contains /storage/emulated/0/Pictures/IMAGE_202012191051076975616910711782408.jpg androidx.core.content.FileProvider$SimplePathStrategy.getUriForFile (FileProvider.java:744) androidx.core.content.FileProvider.getUriForFile (FileProvider.java:418) gun0912.tedimagepicker.util.MediaUtil$Companion.getMediaUri (MediaUtil.kt:76) gun0912.tedimagepicker.util.MediaUtil$Companion.getMediaIntentUri$tedimagepicker_release (MediaUtil.kt:36) gun0912.tedimagepicker.TedImagePickerActivity.onCameraTileClick (TedImagePickerActivity.kt:268) gun0912.tedimagepicker.TedImagePickerActivity.access$onCameraTileClick (TedImagePickerActivity.kt:50) gun0912.tedimagepicker.TedImagePickerActivity$setupMediaRecyclerView$$inlined$apply$lambda$1.onHeaderClick (TedImagePickerActivity.kt:207) gun0912.tedimagepicker.base.BaseRecyclerViewAdapter$onCreateViewHolder$$inlined$apply$lambda$1.onClick (BaseRecyclerViewAdapter.kt:65) android.view.View.performClick (View.java:6603) android.view.View.performClickInternal (View.java:6576) android.view.View.access$3100 (View.java:780) android.view.View$PerformClick.run (View.java:26094) android.os.Handler.handleCallback (Handler.java:873) android.os.Handler.dispatchMessage (Handler.java:99) android.os.Looper.loop (Looper.java:193) android.app.ActivityThread.main (ActivityThread.java:6704) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:916)