Android Studio build error: Can't load a class

Viewed 177

I didn't even do anything to the app and it gave the following error:

Caused by: java.lang.NoClassDefFoundError: org/jetbrains/kotlin/annotation/plugin/ide/AnnotationBasedPluginModelBuilderService

I configured this project with Java and API 21, and is on Windows OS

What I've tried:

  • Deleting .gradle
  • Deleting the entire project
  • Changing the jre used for build to the jdk I installed on my computer, which is JDK14

Aand it doesn't work. Any help appreciated!

EDIT : One more thing attempted: disabled then enabled the Kotlin plugin, still does not work. Thanks user @Android_id for suggesting the possibility though!

0 Answers
Related