buildscript { repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:8.7.3' } } allprojects { configurations.configureEach { resolutionStrategy.eachDependency { details -> if (details.requested.group == 'org.jetbrains.kotlin') { details.useVersion "1.8.22" } } } repositories { google() mavenCentral() } } tasks.register('clean', Delete) { delete rootProject.layout.buildDirectory.get().asFile }