Can someone tell me how to update? I downloaded An...
# android
g
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
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
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
You can always download a beta or canary version from the website and run it side by side with the stable version
s
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
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
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
@Matej Drobnič You should search for the issue in google tracker and if you don’t find it file one.
m
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.