Download the IntelliJ Kotlin plugin and gradle to match

I am trying to use IntelliJ 16, an early access version, but my project will not compile with:

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. 

Presumably the Gradle and IntelliJ Kotlin versions match, but the installed Kotlin plugin is: 1.0.0-rc-1007-IJ143-11

I do not see this in any public repository. The last one that I announced in the Gradle project:

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

., can IntelliJ 16 be used with Kotlin and Gradle?

+2
java intellij-idea kotlin gradle
source share
1 answer

In short, the Kotlin IDEA RC plugin ( 1.0.0-rc-1007 , 1017 , 1025 ) is not compatible with beta libraries, and RC library builds are not yet on Maven Central.

To use them, you need to add an EAP repository:

 repositories { // ... maven { url 'https://dl.bintray.com/kotlin/kotlin-eap/' } } 

for both buildscript and part of the project.

In addition, your kotlin_version incorrect, it should not have -IJ143-11 . Use 1.0.0-rc-1025 .

Another solution is to roll back the Kotlin plugin to the Beta version, which includes removing it ( plugins IDEA installation subfolder, as it is preinstalled in EAP 16) and reinstalling the beta version from the ZIP distribution.

To learn more about EAP builds, see this section .


UPD:

RC was released along with artifacts.

+5
source share

All Articles