'Android emulator is not found React Native Problem

I'm setting up react native environment on windows machine, I set up all environment variables, according npx @react-native-community/cli doctor all is ok:

Common
 ✓ Node.js
 ✓ yarn

Android
 ✓ JDK
 ✓ Android Studio - Required for building and installing your app on Android
 ✓ Android SDK - Required for building and installing your app on Android  
 ✓ ANDROID_HOME

Errors:   0
Warnings: 0

I have installed android studio, whe I run yarn android in a new brand react-native project, I get this output:

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1442 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Launching emulator...
error Failed to launch emulator. Reason: Emulator exited before boot..
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...

echo %JAVA_HOME% returns current path when I print it in console. This is my Java version:

java 11.0.14 2022-01-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.14+8-LTS-263)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.14+8-LTS-263, mixed mode)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source