// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.8.0' // Updated to be compatible with Gradle 8.x repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:8.9.1' // More stable version classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { google() mavenCentral() } // Apply to all projects configurations.all { resolutionStrategy { // Force a specific version of Kotlin stdlib force "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" force "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" force "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" } } } tasks.register('clean', Delete) { delete rootProject.buildDir }