initWith not found after upgrading to Android Gradle Plugin version to 7.0.0-beta02

Viewed 281

After upgrading to 7.0.0-beta02, initWith cannot be found.

In build.gradle.kts:

buildscript {
    repositories {
        ....
    }
    dependencies {
-        classpath("com.android.tools.build:gradle:7.0.0-alpha14")
+        classpath("com.android.tools.build:gradle:7.0.0-beta02")
    }
}

then in app/build.gradle.kts:

    debug {
        ...
    }
    create("enterprise") {
        initWith(getByName("debug")) // <------ This is not found!
    }

If this method is removed from the latest version, then what will be the equivalent of initWith?

0 Answers
Related