FirebaseStorage returning unknown error when requesting image

后端 未结 10 842
[愿得一人]
[愿得一人] 2020-12-02 02:05

I am trying to pull in an image I have added to my firebase storage on an Android device. Every time this runs I get this error from the onFailureListener()

10条回答
  •  春和景丽
    2020-12-02 02:07

    I just noticed that the httpresult is zero. This suggests the request to get the download url was never made. One way this can happen is if play services isn't updated on your phone. You will know this is the error because adb logcat will show an error with something to the effect of "Storage network layer could not be loaded".

    To fix this, update play services on your phone. There are a few ways of doing this. I find the easiest is to install the app "play services info" to see play services in the play store, and then hit update if its available.

提交回复
热议问题