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.
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
3
Answers
Which Flutter version are you using? And what android version are you using for the emulator?
I think you don`t have accept android license accept it and run below command on your terminal hope it help you
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
You have to Change the JDK Version