繁体   English   中英

找不到用于方法[com.android.tools.build:gradle:3.0.0-alpha3]的方法classpath()

[英]Could not find method classpath() for arguments [com.android.tools.build:gradle:3.0.0-alpha3]

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

我正在使用android studio 3.0 canary 6,在build.gradle版本中有问题。 追求gardle构建时会产生错误。

使用classpath 'com.android.tools.build:gradle:3.0.0-alpha6'并进行Sync OR尝试cleanrebuild上述更改后,希望它对您有用

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM