react native运行报错Could not resolve com.google.android.gms:play-services-iid:[16.0.1]
google 自家的 maven 仓库 https://maven.google.com,连接不上。
1. 配置 Gradle Proxy,在 gradle.properties 中添加代理
请将以下代码进行修改:systemProp.http.proxyHost=127.0.0.1,systemProp.http.proxyPort=1080,systemProp.http.proxyUser=userid,systemProp.http.proxyPassword=password,systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost,systemProp.https.proxyHost=所以直接替换 https://maven.google.com 为 https://dl.google.com/dl/android/maven2/
版权声明:搭建盘口维护联系TG:@KT_code
还木有评论哦,快来抢沙发吧~