Error text
Duplicate class org.jetbrains.kotlin.* found in modules kotlin-stdlib-1.8.0 and kotlin-stdlib-jdk8-1.6.0
Duplicate class org.jetbrains.kotlin.* found in modules kotlin-stdlib-1.8.0 and kotlin-stdlib-jdk8-1.6.0
The same class exists inside two libraries. Gradle cannot choose one and stops the build.
dependencyInsight to see who pulls that library in.exclude group: 'x', module: 'y', or force the newer version for everyone.kotlin-bom platform so every Kotlin piece shares one version../gradlew clean assembleDebug../gradlew :app:dependencies --configuration releaseRuntimeClasspath > deps.txt ./gradlew :app:dependencyInsight --dependency kotlin-stdlib --configuration releaseRuntimeClasspath
After adding a library, skim the dependencies output; repeated names stand out.
Author and license: Nibras Code