https://kotlinlang.org logo
#android
Title
# android
g

Geert

12/06/2019, 8:18 PM
Can someone tell me how to update? I downloaded Android Studio 4.0 and gradle hints me that anohter kotlin update is available, but i cant install it
google 1
a

Anastasia Finogenova

12/06/2019, 8:22 PM
Choose canary or beta in the drop-down rather than stable. Android studio 4.0 is not in stable as far as I know so I guess that's the reason it is detecting higher version of kotlin maybe
p

pg

12/06/2019, 8:31 PM
Personally im using jetbrains toolbox on Linux which allows me to have stable, beta and canary versions of AS alongside and it works fine
v

voben

12/06/2019, 8:31 PM
You can always download a beta or canary version from the website and run it side by side with the stable version
s

sindrenm

12/06/2019, 8:39 PM
If I'm not mistaken, AS 4.0 likely requires Kotlin 1.4 (currently in EAP), due to Compose requiring 1.4's new compiler back-end and plugin system. Wouldn't bet on Studio 4.0 being able to work without it. 🤔
v

voben

12/06/2019, 8:41 PM
For that you just need to add eap in the repositories block of your top level build.gradle file
Copy code
maven(url = "<https://dl.bintray.com/kotlin/kotlin-eap>")
👍 1
m

Matej Drobnič

12/09/2019, 7:30 AM
I also experience this with studio 1.6
Choose canary or beta in the drop-down rather than stable
I want stable Kotlin version with beta Studio. I don't think those two are related
If I'm not mistaken, AS 4.0 likely requires Kotlin 1.4
This also applies to AS 3.6 which does not use any compose
top level build.gradle file
This is only for gradle builds, it has nothing to do with IDE plugin
@dawidhyzy What should we google? As far as I can find, there is no solution. For some reason Studio 3.6+ prohibits installation of latest Kotlin plugin.
This is especially annoying due to
DifferentKotlinGradleVersion
inspection
d

dawidhyzy

12/09/2019, 12:03 PM
@Matej Drobnič You should search for the issue in google tracker and if you don’t find it file one.
m

Matej Drobnič

12/09/2019, 12:42 PM
I have reported it already (<https://issuetracker.google.com/issues/145468273>), but in my experience this is a bit moot action. Most of the tickets just on the issue tracker just get left there indefinitely with no action taken on Google part.
4 Views