4

I am developing an app using Flutter on Android Studio.

I have seen warnings like this, but I am not sure how to run Recompile with -Xlint:unchecked for details on Android Studio specifically. Could you give me ideas?

Warnings

Pages I have checked (but I think they are a bit different from my case):

dmjy
  • 1,183
  • 3
  • 10
  • 26

1 Answers1

6

In your project level build.gradle file add this and build the app again

allprojects {
    repositories {
        google()
        jcenter()
    }

    gradle.projectsEvaluated{
        tasks.withType(JavaCompile){
            options.compilerArgs << "-Xlint:deprecation"
        }
    }


}

It will show the deprecation warnings.Upgrade them to latest version.Hope this fix your problem

Mr.Despicable
  • 373
  • 1
  • 4
  • 14