-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PlatformException(Failed to find configured root that contains /file:/storage/emulated/0/project/1590844068701.png, null, null) #19
Comments
The only way i fixed it is by making sure im saving the image to the Cache directory (with <external-path name="external" path="." />
<external-files-path name="external_files" path="." />
<cache-path name="cache" path="." />
<external-cache-path name="external_cache" path="." />
<files-path name="files" path="." /> |
can you please explain where exactly you called |
In my case i call before i save an image to disk (build my path with it as a save location). In your case you might be loading a file to share. |
One thing to note is that you need to pass the absolute file path to |
I'm trying to share a file from AppData using this. It works fine on iOS but gives this error when sharing on Android. Any idea how to share files from AppData? |
Another way to handle this would be to save your file in the getExternalStorageDirectory before sharing and pass the absolute path of that. Haven't tried it, but will post back the results. If anyone has a work around for this please share. |
I have a work around of this nature. see issue #27 for details. |
Had the same problem, this did the trick for me for iOS and Android devices. Thanks @Bretie for the suggestion
|
can't call getExternalStorageDirectory, can you please explain where did you called that function |
On Android (happily avoid platform specific handlings) I can use
|
I have the same case, but the log with the exception seems to be a problem to me |
PlatformException(Failed to find configured root that contains /file:/storage/emulated/0/project/1590844068701.png, null, null)
I'm facing this exception while sharing image file. I had added path provider code in AndroidMinifest.xml file, make new file provider_path.xml in src/xml/...
Any solution please.
The text was updated successfully, but these errors were encountered: