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/' }
网友评论