I'm having some trouble upgrading the version of Kotlin to 1.3-M1
or 1.3-M2
I'm using 1.2.51
right now and the error I'm getting when I try using any newer versions like 1.3-M2
is:
Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.3-M2.
I'm guessing it has been moved but I've looked al over and haven't found a solution.
Can anyone point me in the right direction?
In your Android studio, Go to Tools -> Kotlin -> Configure Kotlin Updates.
Go to Intellij Preferences -> Build, Execution, Deployment -> Kotlin Compiler. Update Language version and Api version to the one you wish. This should be the accepted answer.
Select your module in the Project window, and then select File > New, select any Android template, and then choose Kotlin as the Source language.
Thanks to yole and TheWanderer I found what was missing.
Here under the EAP-NEXT
tab you can find the correct version of the kotlin plugin for IntelliJ/Android Studio.
So this is what I did to solve it:
1 - Android Studio -> Tools -> Kotlin -> Configure Kotlin Plugin Updates
2 - Select Early Access Preview 1.3 on the Update channel
drop down(If you can't find it click again)
3 - What this answer says:
On your project level build.gradle
:
buildscript {
repositories {
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
}
repositories {
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
To update to a prerelease version of Kotlin, as described in the blog post, you need to add the kotlin-eap
repository to your build.gradle:
buildscript {
repositories {
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
}
repositories {
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With