guolindev / PermissionX

An open source Android library that makes handling runtime permissions extremely easy.
Apache License 2.0
3.54k stars 407 forks source link

不具备写入权限 #265

Open minorlai opened 1 year ago

minorlai commented 1 year ago

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

报:open failed: EACCES (Permission denied)

itssunyujia commented 4 months ago

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