I\'m trying to build my project using gradle but it seems that it can\'t find my kotlin plugin, even though I did add it using \"install plugin from disk\".
I can guess that you doesn't have repository in build.gradle, so please compare your build file with following, and then make "Gradle Refresh" in Idea.
buildscript {
ext.kotlin_version = '<version to use>'
repositories {
mavenCentral()
// or better:
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: "kotlin"
repositories {
mavenCentral()
// or better:
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
Pay more attention to buildscript part of config: repositories here is necessary!
I got config from here, with my little refinements.