找不到参数[com.android.tools.build:gradle:3.0.0-alpha3]的方法classpath()
我正在使用android studio 3.0 canary 6,build.gradle版本中存在问题。它在执行gardle构建时会产生错误。使用找不到参数[com.android.tools.build:gradle:3.0.0-alpha3]的方法classpath(),android,android-studio,Android,Android Studio,我正在使用android studio 3.0 canary 6,build.gradle版本中存在问题。它在执行gardle构建时会产生错误。使用classpath'com.android.tools.build:gradle:3.0.0-alpha6'和Sync 或尝试 清理或在上述更改后重建 希望它对你有用 // Top-level build file where you can add configuration options common to all sub-projects/m
classpath'com.android.tools.build:gradle:3.0.0-alpha6'
和Sync
或
尝试
清理
或在上述更改后重建
希望它对你有用
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.1.3-2'
repositories {
google()
jcenter()
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}