Tag: filenotfoundexception

打开失败:在kotlin中ENOENT(没有这样的文件或目录)

我试图从gallery获取图像并将其发送给retrofit 。 发送我面临异常的图像。 E /错误:文件:/storage/sdcard0/Pictures/JPEG_20171012125800_1088307192.jpg:打开失败:ENOENT(没有这样的文件或目录) 以下是我的代码的显示。 这是kotlin。 点击按钮事件: img_add.setOnClickListener { var count = layout_direct_cemara.childCount isPermissionRequestRequired(this, perms, 1) if (count < 5) { setMultiShowButton() } else { C.showToast(applicationContext , "You can upload maximum 5 images") } } 以下是两个函数获取图像并将其设置为我的布局。 private fun setMultiShowButton() { val bottomSheetDialogFragment = TedBottomPicker.Builder(this) .setOnMultiImageSelectedListener { uriList -> selectedUriList = uriList showUriList(uriList) } .setPeekHeight(1600) […]