如何将Firebase与Glide集成('使用'方法)

zb2*_*b22 9 java android firebase android-glide firebase-storage

我正在尝试使用Firebase与Glide集成,由于某些原因, Glide.using()无法解决此方法.我添加了:

compile 'com.firebaseui:firebase-ui-storage:0.6.0'
Run Code Online (Sandbox Code Playgroud)

进入build.gradle并且还:

compile 'com.github.bumptech.glide:glide:4.0.0-RC1'
Run Code Online (Sandbox Code Playgroud)

这是我试图使用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);
Run Code Online (Sandbox Code Playgroud)

我希望你能帮助我,没有在网上找到任何解决方案.

Ale*_*amo 8

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

compile 'com.github.bumptech.glide:glide:4.0.0-RC1'
Run Code Online (Sandbox Code Playgroud)

compile 'com.github.bumptech.glide:glide:3.7.0'
Run Code Online (Sandbox Code Playgroud)

  • 请参阅[Github上的此问题](https://github.com/firebase/FirebaseUI-Android/issues/731)以跟踪对Glide 4.0的支持. (4认同)