title: Firebase Storage OnSuccessListener is not working
body: <p>I want to uploading image to the Firebase. For that I am using Firebase Storage <code>OnSuccessListener</code>. But <code>OnSuccessListener</code> is not working. It shows:</p>
  
  <blockquote>
    <p>Cannot resolve symbol 'OnSuccessListener'</p>
  </blockquote>
  
  <pre><code> private void startPosting(){
  
      mProgess.setMessage("Uploading Quotes");
      mProgess.show();
  
      final String Quote_val = mPostQuote.getText().toString().trim();
  
      final String Author_val = mPostAuthor.getText().toString().trim();
  
      if (!TextUtils.isEmpty(Quote_val) &amp;&amp; !TextUtils.isEmpty(Author_val) &amp;&amp; mImageUri !=  null){
  
          StorageReference filepath = mStorage.child("Quote_Image").child(mImageUri.getLastPathSegment());
  
          filepath.putFile(mImageUri).addOnSuccessListener(new OnSuccessListener&lt;UploadTask.TaskSnapshot&gt;() {
  
              @Override
              public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
  
                  Uri downloadUrl = taskSnapshot.getDownloadUrl();
                  DatabaseReference newPost = mDatbase.push();
                  newPost.child("Quotes").setValue(Quote_val);
  
                  newPost.child("Quote_Author").setValue(Author_val);
                  newPost.child("Images").setValue(downloadUrl);
                  mProgess.dismiss();
  
                  startActivity(new Intent(adminUpdateQuotesSend.this, QuoteList.class));
              }
          });
      }
  }
  </code></pre>
  
  <p>I am using:</p>
  
  <pre><code>implementation 'com.google.firebase:firebase-storage:9.2.0'
  </code></pre>