首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用FirebaseUI下载图片

用FirebaseUI下载图片
EN

Stack Overflow用户
提问于 2017-07-16 14:47:21
回答 1查看 557关注 0票数 0

我正在尝试添加到我的项目firebase-ui-storage中

代码语言:javascript
复制
The latest version is: firebase-ui-storage:2.0.1

但是,当添加以下内容时:

代码语言:javascript
复制
compile 'com.google.android.gms:play-services-auth:11.0.2'
    implementation 'com.google.firebase:firebase-auth:11.0.2'
    compile 'com.google.firebase:firebase-database:11.0.2'

它抱怨存储是11.0.1,当我试图运行代码时,我得到了多个dex文件……是否有新版本的firebase-ui-storage:2.0.1

我想实现这一点

代码语言:javascript
复制
First, add FirebaseUI to your app/build.gradle:

dependencies {
    // FirebaseUI Storage only
    compile 'com.firebaseui:firebase-ui-storage:0.6.0'
}
Then you can load images directly from Storage into an ImageView:

// Reference to an image file in Firebase Storage
StorageReference storageReference = ...;

// ImageView in your Activity
ImageView imageView = ...;

// Load the image using Glide
Glide.with(this /* context */)
        .using(new FirebaseImageLoader())
        .load(storageReference)
        .into(imageView);
EN

回答 1

Stack Overflow用户

发布于 2017-07-16 15:20:38

请更改版本号后重试。

代码语言:javascript
复制
compile 'com.google.android.gms:play-services-auth:11.0.2'

代码语言:javascript
复制
compile 'com.google.android.gms:play-services-auth:11.0.1'

检查此link

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45125861

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档