相关文章推荐
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

I'm a beginner in gradle, using version 4.8.

Whatever I do , the plugins are never found. I get this error message:

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

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Plugin Repositories (could not resolve plugin artifact 'org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.3.20') Searched in the following repositories: Gradle Central Plugin Repository
  • No matter how many repositories I add, it seems it is only looking in "Gradle Central Plugin Repository"

    My gradle.build file:

    buildscript {
        repositories {
            mavenCentral()
            maven {
                url "https://plugins.gradle.org/m2/"
        dependencies {
            classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.20"
            classpath "org.jetbrains.kotlin.jvm:kotlin-gradle-plugin:1.3.20"
    plugins {
        id 'java'
        id 'org.jetbrains.kotlin.jvm' version '1.3.20'
        id 'kotlin2js' version '1.3.20'
    

    Can you help me?

    I had similar problem because i forgot about proxy settings like systemProp.https.proxyHost and systemProp.http.proxyHost and etc. that was set in ~/.gradle/gradle.properties.

    I fixed configuration and plugin was successfully dowlnloaded

    Check gradle.properties and try to add correct proxy settings if you behind firewall or escape this settings if you not.

    I try it , it did'nt work. I still only have Gradle Central Plugin Repository as repository where it seems to search – sab Feb 1, 2019 at 17:32 @sab it's even in that repository: plugins.gradle.org/plugin/org.jetbrains.kotlin.android ... while org.jetbrains.kotlin.jvm:kotlin-gradle-plugin:1.3.20 simply might not exist. – Martin Zeitler Feb 1, 2019 at 17:57 As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center. – Community Dec 15, 2021 at 7:26

    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.

     
    推荐文章