美文网首页
Error:Connection timed out: conn

Error:Connection timed out: conn

作者: riverSod | 来源:发表于2021-04-26 14:43 被阅读0次

Error:Connection timed out: connect

修改替换阿里云的仓库

buildscript {
    repositories {
//      google()
//      maven { url 'https://maven.google.com' }
        maven{ url 'https://maven.aliyun.com/repository/google'}
        maven{ url 'https://maven.aliyun.com/repository/jcenter'}
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.4'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
//      maven { url 'https://jitpack.io' }
//      maven { url 'https://maven.google.com' }
//      maven { url 'http://raw.github.com/saki4510t/libcommon/master/repository/' }
        maven{ url 'https://maven.aliyun.com/repository/google'}
        maven{ url 'https://maven.aliyun.com/repository/jcenter'}
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
    }
}

Failed to resolve: com.serenegiant:common:2.12.4
修改:

maven { url 'https://gitee.com/liuchaoya/libcommon/raw/master/repository/' }

相关文章

网友评论

      本文标题:Error:Connection timed out: conn

      本文链接:https://www.haomeiwen.com/subject/wlgsrltx.html