I have been trying to upload images to the new firebase storage service . It is throwing StorageException
E/StorageException: StorageException has occ
```private StorageReference mStorage;
final StorageReference filepath = mStorage.child("log_images");
Task<Uri> downloadurl = filepath.getDownloadUrl();```
check the above and last make sure the yourlatest for latest version google search (android and firebase) 'com.google.firebase:firebase-storage:19.1.1'
This problem may cause of authentication while uploading in firestore . You have to remove authentication part in the code of the rules of firebase storage.
Remove this and publish :if request.auth != null;
This Sorted me out, not a single line of code change ;) , All I needed to do was to update the firebase-storage lib.
In my case it was 'com.google.firebase:firebase-storage:16.4.0'
and after updating it to 'com.google.firebase:firebase-storage:17.0.0'
everything start working fine again.
Enable anonymous authentication in firebase console.
I had encountered this issue, when I had not created the referenced folder/bucket in the Firebase Storage. Unlike Firebase Database, I think (I am not sure yet), the Storage reference will not create the bucket if it doesn't exist in the first place. So, create a folder first, and then try again.
I was also facing the same,