http://services.gradle.org/distributions/ 首先下載 all 版本 ,解壓 ,再d盤, 並保留zip 文件 ,新建環境變量 GRADLE_HOME 指向這個目錄
修改 idea 下,gradle-wrapper.rpoperties distributionUrl=file:///D:/gradle-5.0/gradle-5.0-rc-3-all.zip 變成本地文件
如果是升級 ,刪除C:\Users\flin\.gradle 里面的文件,重新下載估計得要1個多小時
https://blog.jetbrains.com/kotlin/2018/07/see-whats-coming-in-kotlin-1-3-m1/
How to Try It
In Maven/Gradle: Add http://dl.bintray.com/kotlin/kotlin-eap
as a repository for the build script and your projects; use 1.3-M1
as the version number for the compiler plugin and the standard library.
In IntelliJ IDEA: Go to Tools → Kotlin → Configure Kotlin Plugin Updates, then select “Early Access Preview 1.3” in the Update channel drop-down list, and then click Check for updates.
The command-line compiler can be downloaded from the Github release page.
On try.kotlinlang.org: Use the drop-down list in the bottom right-hand corner to change the compiler version to 1.3‑M1.