问题
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?
回答1:
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
来源:https://stackoverflow.com/questions/47330082/intellij-idea-could-not-find-org-jetbrains-kotlinkotlin-gradle-plugins