Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/
程序员文章站
2022-01-09 09:49:00
错误Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/Gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.Consult IDE log for more...
- 错误
Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/
Gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
Consult IDE log for more details (Help | Show Log) (52 m 5 s 412 ms)
- 解决办法
打开根目录下的build.gradle,修改marven一句:
allprojects {
repositories {
google()
//maven { url 'http://raw.github.com/saki4510t/libcommon/master/repository/' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
jcenter()
}
}
本文地址:https://blog.csdn.net/quantum7/article/details/108173412
上一篇: keras多显卡训练方式