FirebaseStorage returning unknown error when requesting image

后端 未结 10 783
[愿得一人]
[愿得一人] 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:25

    I Know it's too late But for me none of the above worked, the only fix was to update dependency for the Cloud Storage Android library to latest version which was 19.1.0.

    The dependency added by Firebase assistant was old.

    0 讨论(0)
  • 2020-12-02 02:26

    You need to have up to date google play services to avoid this.

    Also, Enable anonymous authentication in firebase console.

    0 讨论(0)
  • 2020-12-02 02:29

    I had the same problem while using the Quick Start Firebase storage sample. The problem was that the app wasn't requesting runtime permissions for storage on Android M.

    So, try to check the storage permissions.

    0 讨论(0)
  • 2020-12-02 02:32

    I got this issue because I provided an invalid system file path for the FileDownloadTask while calling getFile()

    Here the issued is raised as the downloadDirectory was invalid

    String fileName = "...";
    final File localFile = new File(downloadDirectory, fileName);
    FileDownloadTask downloadTask = FirebaseStorage.getInstance()
                                                   .getReference()
                                                   .child("myChild")
                                                   .child(fileName)
                                                   .getFile(localFile);
    
    0 讨论(0)
提交回复
热议问题