-
Notifications
You must be signed in to change notification settings - Fork 986
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
ENOENT: open failed: EACCES (Permission denied), open '/storage/emulated/0/Download/ #941
Comments
Stumbled upon this right now! |
I did both add permission and android:requestLegacyExternalStorage in the manifest file also ask for permission also how this could be solved |
It solved when restarted the app |
thanks worked for me as well. just do not forget to rebuild the app. |
<application ... work for me |
android\app\build\intermediates\merged_manifests\debug\arm64-v8a\AndroidManifest.xml:27: AAPT: error: attribute android:requestLegacyExternalStorage not found. has error |
For me also adding the:
solved the issue for me. Application rebuild is needed! |
<application ... |
android:requestLegacyExternalStorage="true" not working api level 30 |
android:requestLegacyExternalStorage="true" not working api level 31 |
<application ... |
Have you fixed the error for the permission denied? |
Add this and rebuild the app |
For expo you can use this plugin i wrote to add the tag to app.json "plugins": ["./expo/with-legacy-storage.js"] ./expo/with-legacy-storage.js const { withAndroidManifest } = require('@expo/config-plugins')
module.exports = (config) => {
const modifyAndroidManifest = (manifest) => {
const applicationTag = manifest['application'][0]
applicationTag.$['android:requestLegacyExternalStorage'] = 'true'
manifest['application'][0] = applicationTag
return manifest
}
return withAndroidManifest(config, async (config) => {
config.modResults.manifest = modifyAndroidManifest(
config.modResults.manifest,
)
return config
})
} |
i made all the changes..still the same error |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
<application ... work for me thanks |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Thanks |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Hii EveryOne! , Can someone help me I'm facing issue on after getting download the pdf it not open properly , it show that cannot display pdf. |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
I encountered this issue so I am writing this just to tell everyone how to fix this permission issue in android
I have added permissions in manifest file
Also don't forget to ask for permission
The text was updated successfully, but these errors were encountered: