Issue I met

I want to follow this article to learn creating apps with react native. But I met several issues:

error Failed to launch emulator. Reason: No emulators found as an output of emulator -list-avds. warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch. info Installing the app… Task :app:installDebug FAILED

Then I realized the another issue prompted: /bin/sh: adb: command not found

How to solve

After googling, I got answer:

1
2
3
export ANDROID_HOME=/Users/aaron/Library/Android/sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH

and I ran it again, it works. But I think you should also have created an AVD as well.