欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/

程序员文章站 2022-06-10 09:45:34
错误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

相关标签: Visual Studio/QT