skip to Main Content

I’m getting this error while I was running my app (though my app is running fine) :

C:UsersdassaDownloadsflutter_windows_2.2.3-stableflutter.pub-cachehostedpub.dartlang.orgfirebase_storage-10.2.11androidsrcmainjavaioflutterpluginsfirebasestorageFlutterFirebaseStorageTask.java:198: warning: [deprecation] <TResult>call(Executor,Callable<TResult>) in Tasks has been deprecated
    return Tasks.call(FlutterFirebasePlugin.cachedThreadPool, () -> storageTask.cancel());
                ^   where TResult is a type-variable:
    TResult extends Object declared in method <TResult>call(Executor,Callable<TResult>) 20 warnings

It would be great if anyone can help me to fix this.
Thanks.

2

Answers


  1. Luckily this is not an error, but just a warning.

    It is a known Firebase Flutter SDK issue, and you can track its status on this github issue.

    We should expect a new release in which this problem will be resolved, soon.

    Login or Signup to reply.
  2. just change the classpath ‘com.google.gms:google-services:4.x.x’ to classpath ‘com.google.gms:google-services:4.3.10’
    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search