https://kotlinlang.org logo
d

Davide Giuseppe Farella

07/06/2020, 5:05 PM
Hello, I have a Multiplatform library published with Gradle Metadata. I bumped Kotlin to 1.4-M3 because Js was complaining about some generics - now it’s fine. I’m tryin to update my lib into my Android Project, but for some reason I got
Copy code
Failed to resolve: org.jetbrains.kotlin:kotlin-*:1.4-M3
Both with and without Gradle Metadata ( Gradle 6.5.1 ) So I applied
Copy code
allprojects {
    configurations.all {
        resolutionStrategy.force(
            "org.jetbrains.kotlin:kotlin-test:1.3.72",
            "org.jetbrains.kotlin:kotlin-test-common:1.3.72",
            "org.jetbrains.kotlin:kotlin-stdlib:1.3.72"
        )
    }
}
but, at runtime I got:
Class 'assert4k.assert' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
Any way around that? 😕