java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/com.example.fileprovidertest/files/JPEG_20170215_202539_1361683671.jpg

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by doctorx0079
, 9 months ago
Failed to find configured root that contains /data/data/com.example.fileprovidertest/files/JPEG_20170215_202539_1361683671.jpg
via GitHub by mwgao
, 1 month ago
Failed to find configured root that contains
via Stack Overflow by Ritzor
, 1 month ago
Failed to find configured root that contains /storage/emulated/legacy/Android/data/com.mypkg.xyz/files/Pictures/tempFile1506411330369.jpg
via Stack Overflow by budgw
, 9 months ago
Failed to find configured root that contains /storage/emulated/0/AppName/IMG_20160419_095211.jpg
via Stack Overflow by guillaume-tgl
, 10 months ago
Failed to find configured root that contains /storage/<card name>/Android/data/<app package>/files/.export/2016-10-06 13-22-33.pdf
via Stack Overflow by Andrzej Zabost
, 8 months ago
Failed to find configured root that contains /storage/0123-4567/Android/data/<package>/files/42/images/51e4b571-67e4-4e7d-abb0-0ae921d339f4
java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/com.example.fileprovidertest/files/JPEG_20170215_202539_1361683671.jpg
at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:711)
at com.example.fileprovidertest.MainActivity.dispatchTakePictureIntent(MainActivity.java:126)
at com.example.fileprovidertest.MainActivity.onOptionsItemSelected(MainActivity.java:76)
at com.android.internal.policy.PhoneWindow.onMenuItemSelected(PhoneWindow.java:1215)
at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904)
at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:616)
at android.view.View.performClick(View.java:5637)
at android.view.View$PerformClick.run(View.java:22429)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.