I'm trying to execute an Android project but I'm getting this error. I'm running on Mac with M1, JDK 11.0.11 and kotlin 1.4.21.
> Task :common:kaptGenerateStubsAppDebugKotlin FAILED
e: java.lang.NoClassDefFoundError: Could not initialize class org.jetbrains.kotlin.com.intellij.pom.java.LanguageLevel
Here is the full log https://pastebin.com/kzHuad70