Kotlin library build error, expected version is 1.5.1 #52
-
I am trying to use some of latest version kotlin library with rush but we are facing this build error : module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1. Have any way to resolve this issue ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Rush currently only supports v1.5.32 of Kotlin. However, you can manually upgrade it. Here's how:
|
Beta Was this translation helpful? Give feedback.
Rush currently only supports v1.5.32 of Kotlin. However, you can manually upgrade it. Here's how:
Download latest kotlin-compiler.zip from here.
Go to
$RUSH_DATA_DIR/tools/kotlinc
and replace it's contents with the ones from the above ZIP. On Windows,$RUSH_DATA_DIR
is%AppData%\rush
; on Linux, it's$HOME/rush
.Then, go to
$RUSH_DATA_DIR/tools/kotlinc/lib
, and then copyannotations-13.0.jar
,kotlin-stdlib.jar
andkotlib-stdlib-sources.jar
from there to$RUSH_DATA_DIR/dev-deps/kotlin
.Done!