Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA - could not find org.jetbrains.kotlin:kotlin-gradle-plugins

Trying to open a Corda demo in IntelliJ IDEA and getting this error when it tries to import gradle settings

Error:Could not find org.jetbrains.kotlin:kotlin-gradle-plugins:1.1.4. Searched in the following locations: file:/C:/Users/Default/.m2/repository/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.pom file:/C:/Users/Default/.m2/repository/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.jar https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.pom https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.jar https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.pom https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugins/1.1.4/kotlin-gradle-plugins-1.1.4.jar Required by: project :

I can't find any documentation to suggest how to fix this, Any ideas?

like image 626
Matthew Layton Avatar asked Nov 16 '17 12:11

Matthew Layton


1 Answers

There seems to be a typo in the build script: the correct name of the artifact is kotlin-gradle-plugin (without s).

Check the dependency declaration in your build.gradle:

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:..."

It's described in the docs here: Using Gradle

like image 189
hotkey Avatar answered Nov 14 '22 22:11

hotkey