在Firebase上上传图片后,图片加载失败,重新启动应用后,加载正确

时间:2019-05-14 10:30:15

标签: android firebase firebase-realtime-database google-maps-markers google-maps-android-api-2

当我要在更新用户个人资料图像后获取数据时,该图像不会通过Glide加载到ImageView中,并且会引发如下异常。但是重新启动应用程序后,滑行程序可以将图像加载到ImageView中。

注意:我的应用在Firebase实时数据库中具有后端。然后它使用WC()->cart->get_cart(); 来获取数据。

GeoQueryEventListener

我的代码如下:

 Glide: Load failed for https://graph.facebook.com/104007287452302/picture?width=400&height=400 with size [720x1280]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
There was 1 cause:
java.io.FileNotFoundException(https://graph.facebook.com/104007287452302/picture?width=400&height=400)
 call GlideException#logRootCauses(String) for more detail
  Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class java.io.InputStream, REMOTE
There was 1 cause:
java.io.FileNotFoundException(https://graph.facebook.com/104007287452302/picture?width=400&height=400)
 call GlideException#logRootCauses(String) for more detail
    Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetch failed
There was 1 cause:
java.io.FileNotFoundException(https://graph.facebook.com/104007287452302/picture?width=400&height=400)
 call GlideException#logRootCauses(String) for more detail
      Cause (1 of 1): class java.io.FileNotFoundException: https://graph.facebook.com/104007287452302/picture?width=400&height=400

最欢迎提出建议。

0 个答案:

没有答案