Gradle version 3.3 does not support forTask() method on BuildActionExecuter

后端 未结 10 1172
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 17:04

I just updated my Android Studio to 3.0 canary 1. Now I am working on my existing project on Android Studio 3.0 canary 1. By default gradle:3.0.0-alpha1 is

10条回答
  •  春和景丽
    2020-12-07 18:04

    Once add these with Top level Gradle

    // Top-level build file where you can add configuration options common to all sub-projects/modules.
    
    buildscript {
    
        repositories {
            maven { url 'https://maven.google.com' }
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.0.0-alpha9'
    
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    allprojects {
        repositories {
            jcenter()
            maven { url 'https://maven.google.com' }
        }
    }
    
    task clean(type: Delete) {
        delete rootProject.buildDir
    }
    

提交回复
热议问题