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.
    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。我是从android studio安装的。现在一切正常。

关于react-native - React Native出现以下错误如何解决,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65537942/

相关文章:

react-native - 如何在 TensorflowJs 中将张量解码为 Base64?

react-native - 在解析模块时 react native 编译错误

react-native - 在 React Native 中通过平移手势改变元素的样式

react-native - 无法在 React Native WebView 中连接到本地主机

react-native - 如何在 react-native (expo) 中从 OTG 输入读取视频流 - 降低帧速率,转换为灰度并显示它?

javascript - 如何在 switch 语句(redux reducer)中更改数组的 ID?

javascript - 从 AsyncStorage 中删除特定项目

javascript - 为什么我们在react native router flux中需要一个 "root"的场景

由于添加 react-native-google-place-picker 节点模块,React-Native 应用程序将无法编译

android - 有没有办法在 React Native(适用于 Android)中添加视频元素?