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

不具备写入权限 #265

Open
minorlai opened this issue Oct 12, 2023 · 1 comment
Open

不具备写入权限 #265

minorlai opened this issue Oct 12, 2023 · 1 comment

Comments

@minorlai
Copy link

Android 13 targetSdkVersion=33
requestList.add(Manifest.permission.READ_MEDIA_IMAGES)
requestList.add(Manifest.permission.READ_MEDIA_VIDEO)

报:open failed: EACCES (Permission denied)

@itssunyujia
Copy link

itssunyujia commented Aug 2, 2024

Try add these two lines to your application tags in AndroidManifest.xml
android:preserveLegacyExternalStorage="true"
android:requestLegacyExternalStorage="true"

https://developer.android.com/training/data-storage/use-cases

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

2 participants