Open chenyusheng opened 5 years ago
i meet the same question. you should get the Uri of the Image
AndroidManifest.xml 中 配置requestLegacyExternalStorage属性 android:requestLegacyExternalStorage="true"
my devices is Xiaomi MI9,System version Android. i got a error when i use luban,like that:
E = /storage/emulated/0/DCIM/Screenshots/Screenshot_2019-10-21-11-38-06-025_com.sankuai.meituan.takeoutnew.jpg: open failed: EACCES (Permission denied)
i sure that i have grant the permision Read/Write Storage. it somebody can help me?
How did you solved this error i am also having this error. Reply ASAP
private fun getAppSpecificDir(context: Context): File? { return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { context.getExternalFilesDir(Environment.DIRECTORY_PICTURES) } else { context.getExternalFilesDir(null) } }
my devices is Xiaomi MI9,System version Android. i got a error when i use luban,like that:
i sure that i have grant the permision Read/Write Storage. it somebody can help me?