allprojects { repositories { google() mavenCentral() } } // Keep all Gradle outputs under /build so the Flutter CLI finds the APKs. // (Project.buildDir was removed in Gradle 9 -> use layout.buildDirectory.) def newBuildDir = rootProject.layout.buildDirectory.dir("../../build").get() rootProject.layout.buildDirectory.value(newBuildDir) subprojects { project.layout.buildDirectory.value(newBuildDir.dir(project.name)) } subprojects { project.evaluationDependsOn(':app') } tasks.register("clean", Delete) { delete rootProject.layout.buildDirectory }