skip to Main Content

I downloaded flutter for android studio and after I started getting this error while trying to run myapp on a virtual device. Before I was using Kotlin for android studio and everything would run fine. I have tried deleting and redownloading both flutter and Android studio.

This is the Error that I get

3

Answers


  1. Which Flutter version are you using? And what android version are you using for the emulator?

    Login or Signup to reply.
  2. I think you don`t have accept android license accept it and run below command on your terminal hope it help you

    flutter doctor --android-licenses
    

    and accept the android license

    if problem is not solved change the compileSdkVersion 29 , minSdkVersion 23,
    targetSdkVersion 29
    in build.gradle file here android/app/build.gradle
    and relaunch your app

    Login or Signup to reply.
  3. You have to Change the JDK Version

    j.d.k 16.0.2 to j.d.k 15.0

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