【发布时间】:2018-12-23 06:39:24
【问题描述】:
当我尝试在我的应用中更新图像时,它不是在更新,而是在 Firebase 存储更新中 我习惯了
Picasso.get().load(image).placeholder(R.drawable.profile).into(profileImage);
我也试过
Picasso.with(SetupActivity.class).load(image).placeholder(R.drawable.profile).into(profileImage);
这些是我的依赖项
implementation 'com.google.firebase:firebase-core:16.0.1' implementation 'com.google.firebase:firebase-auth:16.0.2' implementation 'com.google.firebase:firebase-database:16.0.1' implementation 'com.google.firebase:firebase-storage:16.0.1' implementation 'de.hdodenhof:circleimageview:2.2.0' implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.+' implementation 'com.squareup.picasso:picasso:2.71828' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
【问题讨论】:
-
你能告诉我们你的数据库结构,你从哪里得到这个 url 值 dataSnapshot.child("profileimage").getValue().toString();这可能是问题
标签: android firebase firebase-realtime-database firebase-storage picasso