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()
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.
You need to have up to date google play services to avoid this.
Also, Enable anonymous authentication in firebase console.
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.
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);