Hi, Do you know how to solve this problem? ```Th...
# kotlin-native
g
Hi, Do you know how to solve this problem?
Copy code
There are 132 libraries libraries from the Kotlin/Native 1.3.61 distribution attached to the project: stdlib, AVFoundation, AVKit, Accelerate, Accounts, ...  These libraries were compiled with an older Kotlin/Native compiler and can't be read in IDE. Please edit Gradle buildfile(s) to use Kotlin Gradle plugin version 1.4-M2. Then re-import the project in IDE.
I’m already using Kotlin
1.4-M2
but it looks like Kotlin/Native still keeps downloading this version. How can I force it to use
1.4-M2
? I’m using Gradle with KTS
Seeing this issue: https://github.com/kotlin-hands-on/mpp-ios-android/issues/6 I tried this: build.gradle.kts:
Copy code
buildscript {
    dependencies {
	    classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4-M2")
but it doesn’t work.
a
Hi, @GarouDan! Have you set your repositories to make 1.4-M2 accessible? I mean following instructions from here, about
repositories
and
pluginManagement
. Please give it a try and ping me on results, can you?
g
It will be a bit long but hopefully I think this could help to solve the problem. I’ve seen that we cannot write code snippets here
I’ve attached the information to this file, I’d like to post as a message but it was too long. Can you please take a look for me?
I also tried this after the buildscript block:
Copy code
apply(plugin = "kotlin-multiplatform")
instead of this before the buildscript block:
Copy code
plugins {
 kotlin("multiplatform")
}
but it gives me the same error
I’ve created this issue here: https://youtrack.jetbrains.com/issue/KT-39594
👀 1