无法在 vs code 上启动模拟器以响应本机

Can't start emulator on vs code for react native

我无法在 vs code 上启动 android 模拟器以 运行 react-native。我在 android studio 中已经有一个模拟器。它显示

error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`. 作为 react-native 的新手,我不知道该怎么做。 Metro bundler 是 运行ning 好,但是当输入 npx react-native run-android

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 870 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
info Installing the app...
Starting a Gradle Daemon (subsequent builds will be faster)
IOException: https://dl.google.com/android/repository/addons_list-3.xml
java.net.ConnectException: Connection refused: connect
IOException: https://dl.google.com/android/repository/addons_list-2.xml
java.net.ConnectException: Connection refused: connect
IOException: https://dl.google.com/android/repository/addons_list-1.xml
java.net.ConnectException: Connection refused: connect
Failed to download any source lists!
IO exception while downloading manifest:
java.net.ConnectException: Connection refused: connect

问题已解决。
1 :降级节点js
2 : 更改了 buildToolsVersion 并且有效