【发布时间】:2021-05-30 02:34:31
【问题描述】:
我正在尝试在存储在 Firebase 存储中的 CircularImageView 中显示图像,但 glide 给了我这个错误:
W/Glide: Load failed for gs://project-2d8i4.appspot.com/pictures/3HnfQSeBladDsD9sPEcKrhxJ6CB2 with size [1200x1200]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
图片在 Firestore 中保存为:
"gs://project-2d8i4.appspot.com/pictures/3HnfQSeBladDsD9sPEcKrhxJ6CB2"
绑定到图像视图(uri = "gs://project-2d8i4.appspot.com/pictures/3HnfQSeBladDsD9sPEcKrhxJ6CB2"):
fun CircularImageView.bindProfilePicture(uri: String?) {
Glide
.with(this)
.load(uri)
.into(this)
}
glide 的依赖项:
implementation 'com.github.bumptech.glide:glide:4.12.0'
任何帖子中没有任何答案对我有任何帮助。我希望有人能帮助我。谢谢。
【问题讨论】:
标签: java android firebase firebase-storage android-glide