Choose a device definition and select Next.

Select one or more system images for the Android versions you want
to emulate, and select Next.
An x86 or x86_64 image is recommended.

Under Emulated Performance, select Hardware - GLES 2.0 to enable
hardware
acceleration.

Verify the AVD configuration is correct, and select Finish.

    For details on the above steps, see Managing
AVDs.

In Android Virtual Device Manager, click Run in the toolbar.
The emulator starts up and displays the default canvas for your
selected OS version and device.

Agree to Android Licenses

Before you can use Flutter, you must agree to the
licenses of the Android SDK platform. This step should be done after
you have installed the tools listed above.

Make sure that you have a version of Java 11 installed and that your 
JAVA_HOME environment variable is set to the JDK’s folder.