Oreo (WRITE EXTERNAL STORAGE) Permission

后端 未结 7 1757
攒了一身酷
攒了一身酷 2020-12-29 23:47

According to \"developer.android.com\"

If the app targets Android 8.0 (API level 26), the system grants only 
READ_EXTERNAL_STORAGE at that time; however, i         


        
7条回答
  •  情深已故
    2020-12-30 00:07

    UPDATE: See this answer for a better solution


    EDIT: This is not a solution, just a quick workaround.

    If you get permission denied error even when the permissions are granted and you already implemented permission checks,

    make sure you're not targetting api level 29:

    Change targetSdkVersion and compilesdkversion from 29 to 28 or any other lower level.

提交回复
热议问题