【发布时间】:2021-06-17 14:38:34
【问题描述】:
我正在尝试将图像从 Firebase 加载到图像视图中。 我的图像是(test.jpg)在 Firestore 的文件夹(产品)中 我尝试使用以下代码将此图像加载到图像视图中:
val imageView = findViewById<ImageView>(R.id.image)
val storageref = Firebase.storage.reference
val path = storageref.child("products")
val LoadImage = "test.jpg"
val pathReference = path.child(LoadImage)
Glide.with(this)
.load(pathReference)
.into(imageView)
这应该是正确的。但我确实收到了这个错误:
请求抛出未捕获的 throwable com.bumptech.glide.Registry$NoModelLoaderAvailableException:找不到模型的任何模型加载器:gs://xxxx.appspot.com/products/test.jpg
有谁知道我做错了什么?
【问题讨论】:
标签: kotlin google-cloud-firestore android-glide