日期:2020-06-01 浏览次数:1751 次
No cached version of com.**** available for offline mode.
File -> Settings -> Build,Execution,Deployment -> Gradle -> Offline work 去掉勾选,若本来就没有勾选,可以尝试勾选完之后再重新编译。
buildscript {
repositories {
// google()
// jcenter()
//速度快 用阿里云国内的镜像
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
// google()
// jcenter()
//速度快 用阿里云国内的镜像
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
}
}