Android 10以上
使用Environment.getExternalStorageDirectory()
会报错:
java.lang.IllegalStateException: Not one of standard directories: /data/user/0/
推荐使用:Environment.DIRECTORY_DOWNLOADS
Android 10以上
使用Environment.getExternalStorageDirectory()
会报错:
java.lang.IllegalStateException: Not one of standard directories: /data/user/0/
推荐使用:Environment.DIRECTORY_DOWNLOADS