Android Q Android 10 报错 .jpeg: open failed: EACCES (Permission denied)

在 AndroidManifest.xml 中加入 android:requestLegacyExternalStorage=”true” 就可以解决,如下

<application
          android:name=".App"
          android:allowBackup="true"
          android:icon="@drawable/logo"
          android:label="@string/app_name"
          android:requestLegacyExternalStorage="true"
          android:roundIcon="@drawable/logo"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"
          android:usesCleartextTraffic="true">
0 0 投票数
文章评分
订阅评论
提醒
guest
0 评论
内联反馈
查看所有评论
京ICP备17066706号-1
0
希望看到您的想法,请您发表评论x