相关文章推荐
发怒的小蝌蚪  ·  C# WPF Treeview ...·  2 年前    · 
心软的香瓜  ·  使用FastAPI + ...·  2 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

When I tried to refresh Gradle project , I encountered this error:

Plugin [id: 'org.jetbrains.kotlin.jvm'] was not found in any of the following sources:

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)

  • Plugin Repositories (plugin dependency must include a version number for this source)

    How to solve this issue?

    You just forgot to specify the plugin version, which is mandatory for "not Core" plugins:

    For example :

    plugins {
        application
        kotlin("jvm") version "1.3.10"
    
  • https://kotlinlang.org/docs/reference/using-gradle.html
  • https://docs.gradle.org/current/javadoc/org/gradle/plugin/use/PluginDependenciesSpec.html
  • thks man , perhaps I mistakenly , but in my impression the plugin version specified at last night . At least I remembered that i've tried that , although it went wrong obviously . ... well , I specified the plugin version just now ,and it was solved anyway. – nullcol Dec 30, 2018 at 8:14

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question. Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers.

  •