赞
踩
如果File的路径是("/sdcard/XXXX");
在AndroidManifest.xml里添加requestLegacyExternalStorag
- <application
- android:allowBackup="true"
- android:dataExtractionRules="@xml/data_extraction_rules"
- android:fullBackupContent="@xml/backup_rules"
- android:icon="@mipmap/ic_launcher"
- android:label="@string/app_name"
- android:requestLegacyExternalStorage="true"
- android:roundIcon="@mipmap/ic_launcher_round"
- android:supportsRtl="true"
- android:theme="@style/Theme.Test"
- tools:targetApi="31">
requestLegacyExternalStorag具体什么意思自己去搜
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。