Android Studio says: duplicate class found April 11, 2024 by Tarik just add implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0")) in dependencies it solved my problem.