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">

说点什么

avatar
  Subscribe  
提醒