I can’t update my project to kotlin 1.4.10 (or 1.4...
# android-studio
y
I can’t update my project to kotlin 1.4.10 (or 1.4.0) - already filed a bug report and got told to wait for gradle 7.0. Maybe anyone has other ideas how I can get the sweet new kotlin 1.4.0 working? 🙂
e
1.4 doesn't work in buildSrc or gradle classpath yet (https://github.com/gradle/gradle/issues/12660 fix coming in Gradle 6.8), but it does work just fine in projects
Kotlin's new type inference has had some issues though, you might be running into that
y
Thanks for the info!
z
You're trying to convert your actual source, not your build scripts, to 1.4, right? Sounds like the commenter on that issue thought differently. We've had a ton of performance issues with 1.4 in general as well. Afaik everything in Gradle has been fixed as of 6.7, and AGP 4.1.0. There are still a number of kotlin issues that are only fixed in 1.4.20 though, so I'd also try upgrading your Gradle to 6.7 and trying kotlin 1.4.20-M2 (you need to add the repo for pre-release builds: https://kotlinlang.org/eap/configure-build-for-eap.html)
y
I tried yesterday with a nightly of gradle 8, but ran into different problems there
thanks for the heads up for the new kotlin version, will try today. 🙂 I’m trying to get kmm running asap so I can get rid of duplicating my code in swift x)