Error:Connection timed out: connect

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。