Skip to content Skip to sidebar Skip to footer

Cannot Resolve Method Getdownloadurl()

getDownloadUrl() is not working with my project StorageReference image_path = storageReference.child('profile_images').child(user_id + '.jpg'); image_path.putFile(m

Solution 1:

Try using this.

Task<Uri> task = taskSnapshot.getMetadata().getReference().getDownloadUrl();
 task.addOnSuccessListener(new OnSuccessListener<Uri>() {
     @Override
     public void onSuccess(Uri uri) {
         String photoLink = uri.toString();
     }
 });

Post a Comment for "Cannot Resolve Method Getdownloadurl()"