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

我的梦境 提交于 2019-12-10 16:12:21

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!