After upgrading from 1.3.71 to 1.3.72, I get this ...
# kotlin-native
n
After upgrading from 1.3.71 to 1.3.72, I get this warning:
Copy code
The Kotlin/Native distribution used in this build does not provide the standard library.
And soon after, this error which crashes the whole gradle VM:
Copy code
e: Could not find "stdlib" in [/Users/natario/project-name, /Users/natario/.konan/klib, /Users/natario/.konan/kotlin-native-macos-1.3.72/klib/common, /Users/natario/.konan/kotlin-native-macos-1.3.72/klib/platform/android_arm64].
Does anyone know what this means? I can't see anything relevant in the changelog.
a
This seems strange. Can you check
~/.konan/kotlin-native-macos-1.3.72/klib/common/stdlib
is presented on your system? Stdlib should be there.
n
It really isn't, I only see klib/cache and klib/platform. Going back to 1.3.71 fixes it. Maybe not related, but see also https://kotlinlang.slack.com/archives/C3PQML5NU/p1588000157178100 for a user who reports the same warning, and the same behavior at the end (1.3.71 works, 1.3.72 doesn't)
a
Hmm, the most straightforward thing here would be to remove whole /kotlin-native-macos-1.3.72/ folder. Then the
kotlin-multiplaform
plugin will re-download it. Missing folder signalise about incorrect distro installation, at least this is my guess.
n
I'll try and let you know! From your side maybe it should be a controlled error instead of crashing the whole gradle daemon
l
@natario1 Did you finally try?
n
Just tried, removing the folder works
l
Maybe opening an issue to have the Kotlin Gradle plugin deal with that on its own would help avoid people giving up in face of this issue in the future after a fix?
a
Just FYI, there is an issue already. The problem is not version-specific, it’s about the plugin cannot bear the incorrect downloading on its own. https://youtrack.jetbrains.com/issue/KT-39016
👍 1