// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven { url 'http://repo1.maven.org/maven2' }
jcenter { url "http://jcenter.bintray.com/" }
google()
flatDir {
dirs 'libs'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven { url 'http://repo1.maven.org/maven2' }
jcenter { url "http://jcenter.bintray.com/" }
google()
flatDir {
dirs 'libs'
}
}
}
由于网络限制,我无法同步gradle并试图使其完全脱机。我已为Gradle启用了离线模式。执行后,它说脱机模式下没有com.android.tools.build:gradle:3.1.4的缓存版本。
如何在离线情况下配置gradle-core-3.4.jar android gradle插件?
任何帮助表示赞赏。