error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
在环境都安装好的情况下并且手机也连接成功的情况下如果运行 npx react-native run-android,报出以上错误。可以尝试手动执行一遍adb devices。有时候是端口占用。他会自动解除。然后我们再次执行上面的命令
执行npx react-native init XXX创建项目的时候报错
Exception in thread "main" java.io.IOException: Downloading from xxxxxx failed: timeout
删除yarn工具。确保删除干净,再试试