Could not initialize class org.jetbrains.kotlin.gradle.plugin.KotlinGradleBuildServices Android Studio on Mac Machine

Viewed 46

I am using a Mac machine and getting below error while synching the project

Error: Could not initialize class org.jetbrains.kotlin.gradle.plugin.KotlinGradleBuildServices

I have tried reinstalling the Android Studio and Enabled the Kotlin plugin but did not work. Is there anyone who got this kind of issue before?

The Android Studio version I am using is Android Studio Chipmunk 2021.2.1 Patch 2

2 Answers

I was able to fix it by updating my org.jetbrains.kotlin:kotlin-gradle-plugin dependency in my project level gradle file to 1.7.10

I resolved it by uninstalling the Kotlin 1.7.10 plugin -> Restart IDE -> Clone fresh project run. It was successfully compiled and running.

Related