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()
>
In my case, I was creating StorageRef from Download URL not with the Storage Location.
String storageLocation="gs://bbeplayer.appspot.com/heart.png";
String downloadURL="https://firebasestorage.googleapis.com/v0/b/bbeplayer.appspot.com/o/heart.png?alt=media&token=41a22961-daf1-433e-a580-e65144d34ab3";
StorageReference reference;
reference=FirebaseStorage.getInstance().getReferenceFromUrl(downloadURL);
So I changed reference=FirebaseStorage.getInstance().getReferenceFromUrl(downloadURL);
to
reference=FirebaseStorage.getInstance().getReferenceFromUrl(storageLocation);