StorageException: An unknown error occurred, please check the HTTP result code and inner exception for server response

Doug Stevenson

You can't use putFile() with an HTTP type Uri. According to the documentation, you're supposed to use it to upload a local file.

If you want to upload a file to Storage that exists somewhere else referenced by an HTTP URL, you'll have to download that file first, store it locally, then upload it.

In my case I had to paste the rule below and publish on my storage.

service {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if true;

This Sorted me out, All I needed to do was to update the firebase-storage lib. In my case it was '' and after updating it to '' everything start working fine again.

update your firebase-storage dependency

implementation ''