putFile()
方法显示kotlin中未解析的引用
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if(requestCode==Gallery_Intent && resultCode == Activity.RESULT_OK ) {
val uri = data!!.data
val imgstr = FirebaseStorage.getInstance().getReference().child("images")
uri.putFile(imgstr)
}
uri.putFile(imgstr)
显示错误该怎么办?