Hello! I’m getting the following output and `java.lang.AssertionError` when using Asserts with kotli...
g

Guilherme Delgado

about 1 year ago
Hello! I’m getting the following output and
java.lang.AssertionError
when using Asserts with kotlin
2.1.0-RC
or
2.1.0-RC2
. If I downgrade to
2.0.21
it works:
e: .gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0-RC2/a2fc741252a95c0b35b2f6803cc4593751adc78f/kotlin-stdlib-2.1.0-RC2.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: .gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0-RC2/a2fc741252a95c0b35b2f6803cc4593751adc78f/kotlin-stdlib-2.1.0-RC2.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: .gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.0-RC2/a2fc741252a95c0b35b2f6803cc4593751adc78f/kotlin-stdlib-2.1.0-RC2.jar!/META-INF/kotlin-stdlib.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: .gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-test-junit/2.1.0-RC2/b93d3ae5bf5d6705f0a7e996ae76625be9aab838/kotlin-test-junit-2.1.0-RC2.jar!/META-INF/kotlin-test_JUnit.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
e: .gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-test/2.1.0-RC2/589f4d86f57a00236e6af14e85e84f043ca7e41f/kotlin-test-2.1.0-RC2.jar!/META-INF/kotlin-test.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
Can someone elucidate me? Thanks!
I'm having the same error after upgrading several of my projects to kotlin 2.0.0 for all native targ...
z

zt

over 1 year ago
I'm having the same error after upgrading several of my projects to kotlin 2.0.0 for all native targets:
w: KLIB resolver: The same 'unique_name=org.jetbrains.kotlinx:atomicfu' found in more than one library: /home/nick/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-linuxx64/0.20.2/6ad420ede07f27d1faff29de57851048afe77474/atomicfu.klib, /home/nick/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-linuxx64/0.23.1/8c5db273962e5bee0c7cafb5c2e77aba595e0a3c/atomicfu.klib
w: KLIB resolver: The same 'unique_name=org.jetbrains.kotlinx:atomicfu-cinterop-interop' found in more than one library: /home/nick/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-linuxx64/0.20.2/8cda96bf87ece8377d6307f8145182e9c46d226c/atomicfu-cinterop-interop.klib, /home/nick/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-linuxx64/0.23.1/d44a87a9f79f578e7b36a853477cb61e794d6b74/atomicfu-cinterop-interop.klib
w: KLIB resolver: The same 'unique_name=org.jetbrains.kotlinx:kotlinx-coroutines-core' found in more than one library: /home/nick/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-linuxx64/1.7.1/b465f13ffe74e2d4d2b8448839e2ee6275f67fda/kotlinx-coroutines-core.klib, /home/nick/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-linuxx64/1.8.1/6cd5eda771c30c4e76ee7bc56f43051836e51b4d/kotlinx-coroutines-core.klib
2