Closed jorgezim closed 3 years ago
hi! as i know kotlin 1.5 compatible with libraries compiled by 1.4. have you run into problems with the library using Kotlin 1.5?
update all moko to 1.5 planned at june
no issues so far on the android side, will be implementing IOS side and I'll let you know.
Thanks much appreciated. I believe this is about time for a support update to Kotlin 1.5
Hello, I have the following error using kotlin 1.5.10:
e: Module
I have attached a full project with the error. If you try to build the shared module it breaks for IOS
Now I am using version 0.11.0 and I am getting this error:
w: skipping /Users/zimi/.gradle/caches/modules-2/files-2.1/dev.icerock.moko/mvvm-iosx64/0.11.0/67ed011c7f872ed79137d6e795b597d4f8d4e89f/mvvm.klib. Incompatible abi version. The current default is '1.4.2', found '1.5.0'. The library produced by 1.5.20 compiler e: Could not find "/Users/zimi/.gradle/caches/modules-2/files-2.1/dev.icerock.moko/mvvm-iosx64/0.11.0/67ed011c7f872ed79137d6e795b597d4f8d4e89f/mvvm.klib" in [/Users/zimi/Documents/projects/Zimi-App/ZimiShared, /Users/zimi/.konan/klib, /Users/zimi/.konan/kotlin-native-prebuilt-macos-1.5/klib/common, /Users/zimi/.konan/kotlin-native-prebuilt-macos-1.5/klib/platform/ios_x64]
I invalidated the cache, rebuilt my project and still the error pops up.
@jorgezim moko-mvvm 0.11.0 first version which support kotlin 1.5 and to use it you should use kotlin 1.5.20, as described in your error log :)
https://github.com/Alex009/moko-mvvm-bug-sample/commit/214a33cf13377555543ac5684dc43539533bc924 here commit where all compiled file in your project sample (i test it on ./gradlew build
)
@Alex009 thanks for your reply. Did you see my last message. I tested with 0.11.0 and I got the error described in my previous comment. Basically all works fine if you run it with gradlew but if you specifically run the build taks under the Shared library it throws an error for IOS only w: skipping /Users/zimi/.gradle/caches/modules-2/files-2.1/dev.icerock.moko/mvvm-iosx64/0.11.0/67ed011c7f872ed79137d6e795b597d4f8d4e89f/mvvm.klib. Incompatible abi version. The current default is '1.4.2', found '1.5.0'. The library produced by 1.5.20 compiler e: Could not find "/Users/zimi/.gradle/caches/modules-2/files-2.1/dev.icerock.moko/mvvm-iosx64/0.11.0/67ed011c7f872ed79137d6e795b597d4f8d4e89f/mvvm.klib" in [/Users/zimi/Documents/projects/Zimi-App/ZimiShared, /Users/zimi/.konan/klib, /Users/zimi/.konan/kotlin-native-prebuilt-macos-1.5/klib/common, /Users/zimi/.konan/kotlin-native-prebuilt-macos-1.5/klib/platform/ios_x64]
@jorgezim gradle build
task run all assemble and tests tasks in all projects. so its build shared
too and all ok.
./gradlew :shared:build
successful too.
what exactly you doing? log tell you that you try to compile project not by 1.5.20 kotlin compiler.
@Alex009 I was compiling with kotlin 1.5.0, my bad, I changed to 1.5.20 and all working fine. Thanks!
Are there any timeframes of when the library will be compatible with kotlin 1.5?