React native 如何解决react native中的以下错误

React native 如何解决react native中的以下错误,react-native,React Native,当我尝试使用react native run android命令运行react native应用程序时,我得到以下错误。我已在线搜索,但未找到此错误的解决方案 yarn run v1.22.4 $ react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.

当我尝试使用
react native run android
命令运行react native应用程序时,我得到以下错误。我已在线搜索,但未找到此错误的解决方案

    yarn run v1.22.4
    $ react-native run-android
    info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
    Jetifier found 1088 file(s) to forward-jetify. Using 4 workers...
    info Starting JS server...
    info Installing the app...
    
    > Configure project :react-native-reanimated
    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
            at java.net.DualStackPlainSocketImpl.connect0(Native Method)
...
...

如何解决上述问题?

我发现了问题。未安装生成工具版本29.0.2。我是从安卓工作室安装的。现在它工作得很好