申请了读写权限后仍报Permission denied,android10在manifest.xml中添加
android:requestLegacyExternalStorage="true"
<manifest ... >
<!-- This attribute is "false" by default on apps targeting
Android 10 or higher. -->
<application android:requestLegacyExternalStorage="true" ... >
...
</application>
</manifest>