'error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`

I've spend lots of time solving this problem but it didn't work

When I tried to run android emulator in react native by typing react-native run-android

but it didn't work beacause of this error

detail code for error that happened

so I opened react-native doctor to see the problem. cause I already have Android Studio, and the emulator was already running before I typed react-native run-android. Finally I found my error saying this.

problem on react-native doctor

Is there anyone who can teach me to solve this problem? I have no idea why the computer can't recognize Android Studio. so sad..



Sources

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

Source: Stack Overflow

Solution Source