Java 让IntelliJ Kotlin插件和gradle匹配

Java 让IntelliJ Kotlin插件和gradle匹配,java,intellij-idea,gradle,kotlin,Java,Intellij Idea,Gradle,Kotlin,我正在尝试IntelliJ 16,早期访问版本,但我的项目无法使用以下内容编译: Error:(16, 17) Kotlin: Unresolved reference: substring (note: this may be caused by the fact that some classes compiled with an incompatible version of Kotlin were found in the classpath. Such classes cannot

我正在尝试IntelliJ 16,早期访问版本,但我的项目无法使用以下内容编译:

Error:(16, 17) Kotlin: Unresolved reference: substring
(note: this may be caused by the fact that some classes compiled with 
an incompatible version of Kotlin were found in the classpath. Such 
classes cannot be loaded properly by this version of Kotlin compiler. 
大概Kotlin的Gradle和IntelliJ版本需要匹配,但安装的Kotlin插件是:
1.0.0-rc-1007-IJ143-11

我在任何公共存储库中都没有看到这一点。我在gradle项目中宣布的最新一项是:

buildscript {
    ext.kotlin_version = ' 1.0.0-rc-1007-IJ143-11'

。IntelliJ 16可以与Kotlin和Gradle一起使用吗

简而言之,Kotlin IDEA插件RC(
1.0.0-RC-1007
1017
1025
)与测试版库不兼容,并且RC库版本尚未在Maven Central上

要使用它们,您必须添加EAP存储库:

repositories {
    // ...
    maven { url 'https://dl.bintray.com/kotlin/kotlin-eap/' }
}
buildscript
和项目部分

另外,您的
kotlin_版本
不正确,它不应该有
-IJ143-11
部分。使用
1.0.0-rc-1025

另一个解决方案是将Kotlin插件回滚到Beta版本,这涉及到删除它(
plugins
IDEA安装的子文件夹,因为它是在EAP 16中预安装的)并从ZIP发行版再次安装Beta版

要了解有关EAP构建的更多信息,请参阅


UPD:
RC与工件一起发布。

我使用了第二个建议。当我升级gradle的kotlin以匹配intellij时,它抱怨说一些依赖项(jackson的kotlin模块)在旧的ABI上。Jasperbluse上有一个EAP库的构建,kotlin Slack chat上的#EAP频道中有在私有EAP期间发布库和临时回购的详细信息。如果您处于松弛状态,则添加maven回购
http://dl.bintray.com/jaysonminard/kohesive
并使用最匹配的jackson kotlin模块
2.5.5-RC-1025
2.6.5-RC-1025
2.7.0-RC-1025
谢谢@JaysonMinard,我将加入Slack频道。很乐意测试EAP releases.Erm。那是社区休闲频道吗?如何加入?RC代表什么?