THIS error show my code i try set share option in my app for downloaded video java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/VideoDownloadFAST/20200816190612.mp4 at androidx.core.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:744) at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:418) at com.example.appname.HomeActivity$1$1.onMenuItemClick(HomeActivity.java:101) path file code AndroidManifest file code Answer Change your provider.xml to a broader extend which is more convenient: And then in java: Don’t forget to add this to your