agrosner / DBFlow

A blazing fast, powerful, and very simple ORM android database library that writes database code for you.
MIT License
4.87k stars 598 forks source link

Unable to load class 'kotlin.jvm.internal.Intrinsics' #1721

Open braver-tool opened 3 years ago

braver-tool commented 3 years ago

Showing below error while I updating the version from 4.2.4 to 5.0.0-alpha2

Unable to load class 'kotlin.jvm.internal.Intrinsics'. This is an unexpected error. Please file a bug containing the idea.log file.

I'm using java and Gradle version 3.5.3. How can I fix the above issue?

sebastiande commented 3 years ago

Same for me. There is already a similar issue #1417 @agrosner can you please assist?

It is working in version 680b03acb8 (11.2.2021) and is broken in the next version 88c07819dd (13.2.2021) So basically converting everything to Kotlin breaks the Java part: https://github.com/agrosner/DBFlow/commit/88c07819dddfda8a7f43fb182183027fcd16bd06

sebastiande commented 3 years ago

Adding the following code to the processors build.gradle.kts will fix the problem (even the jar file is then getting quite big for sure)

tasks.withType<Jar> {
    // To add all of the dependencies
    from(sourceSets.main.get().output)

    dependsOn(configurations.runtimeClasspath)
    from({
        configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
    })
}
braver-tool commented 2 years ago

@agrosner Still, I've issued with this and am using Java for my project. Error while I updating the version from 4.2.4 to 5.0.0-alpha2, Unable to load class 'kotlin.jvm.internal.Intrinsics'. This is an unexpected error. Please file a bug containing the idea.log file.

and also I added dependencies for kotlin support in my project. Please assist for the above.