buildscript { ext.kotlin_version = '1.7.10' repositories { google() mavenCentral() } dependencies { // classpath 'com.android.tools.build:gradle:7.3.0' // flutter_local_notifications classpath 'com.android.tools.build:gradle:4.2.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // flutter_local_notifications: solve the problem that enabling desugaring // may result in a Flutter app crashing on Android 12L and above implementation 'androidx.window:window:1.0.0' implementation 'androidx.window:window-java:1.0.0' } } allprojects { repositories { google() mavenCentral() } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } tasks.register("clean", Delete) { delete rootProject.buildDir }