Error:Connection timed out: conn

2021-04-26  本文已影响0人  riverSod

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/' }

上一篇 下一篇

猜你喜欢

热点阅读