如何将Firebase与Glide集成(“使用"方法) [英] How to integrate Firebase with Glide ('using' method)

查看:60
本文介绍了如何将Firebase与Glide集成(“使用"方法)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试将Firebase与Glide结合使用,由于某种原因, Glide.using()无法解决此方法. 我确实添加了:

I'm trying to use Firebase integration with Glide and for some reason, Glide.using() cannot resolve this method. I did add:

compile 'com.firebaseui:firebase-ui-storage:0.6.0'

放入build.gradle以及

compile 'com.github.bumptech.glide:glide:4.0.0-RC1'

这是我要使用Glide的部分:

Here is the part which I'm trying to use Glide:

   mStorageRef = FirebaseStorage.getInstance().getReference();
    mStorageRef.child("images/Puffer-fish-are-pretty-damn-cute.jpg");

// Load the image using Glide
        Glide.with(this)
                .using(new FirebaseImageLoader()) // cannot resolve method using!
                .load(mStorageRef)
                .into(imageView);

希望您能帮助我,但没有在线找到任何解决方案.

I hope you can help me with that, didn't find any solutions online.

推荐答案

要解决此问题,请更改此行:

To solve this, please change this line:

compile 'com.github.bumptech.glide:glide:4.0.0-RC1'

使用

compile 'com.github.bumptech.glide:glide:3.7.0'

这篇关于如何将Firebase与Glide集成(“使用"方法)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆