<Kotlin "Destructuring declaration initializer of ...
# stackoverflow
u
Kotlin "Destructuring declaration initializer of type String must have a 'component1()' function" This is how I am calling the function :- val (ImageUrl: String) = uploadImage("ImageTitle", imageTitleUri!!) This is the function code:- private fun uploadImage(ImageName: String, ImageUri: Uri): String { val fileRef = storagePicRef!!.child("$ImageName.jpg") val uploadTask: StorageTask uploadTask = fileRef.putFile(ImageUri) var imageURL = "" uploadTask.continueWithTask(com.google.android.gms.tasks.Continuation { task -> if...