Connect to maven.google.com:443 [maven.google.com] failed: connect timed out

1,245 阅读1分钟

背景

image.png

解决方法

找这个包的位置(../node_modules/react-native-freshchat-sdk),修改./android/build.gradle文件中的的maven地址:

image.png

https://maven.google.com修改为https://dl.google.com/dl/android/maven2/

gradle clean后重新打包即可(不要轻易clean,先试一下重新打包是否可行,因为clean之后重新打包时间会超级长...)

相关链接