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:Usersflin.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.