Gradle Project: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics

前端 未结 8 1448
抹茶落季
抹茶落季 2020-12-14 14:50

I\'m working on a Java project and within this project I did my first try with Kotlin. I started converting some classes to Kotlin with the JavaToKoltin converter provided i

相关标签:
8条回答
  • 2020-12-14 15:39

    I'm going to say that you're trying to run Kotlin code without the kotlin-runtime library

    Check which system you're using and add the neccesary jar file. You can verify that this is your issue by packaging your project into a .jar file and running it with the runtime library

    0 讨论(0)
  • 2020-12-14 15:41

    In my case, a enableFeaturePreview in the settings.gradle caused this issue when migrating to Kotlin 1.3.

    0 讨论(0)
提交回复
热议问题