Skip to content
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

FileNotFoundException on Android Despite Having share_targets.xml and Proper Permissions #74

Open
mirkancal opened this issue Oct 28, 2023 · 0 comments

Comments

@mirkancal
Copy link

Hi there,

I've implemented all the necessary configurations and the app compiles without issues. However, I encounter a java.io.FileNotFoundException at runtime on Android. Here is the relevant stack trace:

E/ShortcutInfoCompatSaver(19172): java.io.FileNotFoundException: /data/user/0/app.mv.good_app/files/ShortcutInfoCompatSaver_share_targets/targets.xml: open failed: ENOENT (No such file or directory)
... [Rest of the trace]

Context:

Flutter Version: 3.13.9
Android SDK: 33
targetSdk: 33

Configuration:

share_targets.xml is present in the app.
I have granted READ_EXTERNAL_STORAGE permission in the manifest.
Mime type is set to catch-all (/), and the app runs smoothly on Android other than this issue.
Despite these configurations, the issue persists. Any insights would be greatly appreciated.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant