React Native 运行react-native run-android报错Connect to maven.google.com:

报错截图



解决方法

1、电脑翻墙后就可以了

2、项目目录/android/build.gradle

修改maven { url 'https://maven.google.com' }为maven { url'https://dl.google.com/dl/android/maven2/'}就可以了

参考https://blog.csdn.net/qq_41211701/article/details/111312140

你可能感兴趣的:(React Native 运行react-native run-android报错Connect to maven.google.com:)