MediaStore.Images.Media.insertImage报错
1.代码String s = MediaStore.Images.Media.insertImage(getContentResolver(), bitmapByUrl, null, null); Uri imgUri = Uri.parse(s);2.错误原因:android10中要求第三个参数不可为null,解决办法:String s = MediaStore.Images.Media.insertImage(getContentResolver(), bit