In Android, in the build.gradle(app)
file, change target SDK to targetSdkVersion 30
or targetSdkVersion 29
.
Then go to your AndroidManifest.xml
and add this line android:requestLegacyExternalStorage="true"
in the application
tag like that :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
>
<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:requestLegacyExternalStorage="true">
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…