2017-07-06 30 views
6

我试图使用Firebase与Glide集成,出于某种原因, Glide.using()无法解析此方法。 我做了compile 'com.firebaseui:firebase-ui-storage:0.6.0'分成build.gradlecompile 'com.github.bumptech.glide:glide:4.0.0-RC1'如何将Firebase与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); 

回答

6

为了解决这个问题,请改变这一行:

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

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

参见[Github上这个问题(https://github.com/firebase/FirebaseUI-Android/issues/731)追踪对Glide 4.0的支持。 –

+1

这里的文档切换到Glide 4.X https://github.com/firebase/FirebaseUI-Android/tree/master/storage官方文档仍然过时 –

相关问题