Unindexed remote maven repositories in IntelliJ IDEA 14

前端 未结 7 2032
我寻月下人不归
我寻月下人不归 2020-12-30 19:22

I\'ve imported an existing Gradle project to IntelliJ IDEA. I keep getting a notification:

Unindexed remote maven repositories found.

7条回答
  •  一个人的身影
    2020-12-30 19:58

    I had the exact same problem but the other answers didn't help in anyway.

    The problem was the mavenCentral() commands in my build.gradle.

    buildscript {
        repositories {
            mavenCentral()
        }
    }
    
    repositories {
        mavenCentral()
    }
    

    The solution was to replace mavenCentral() with the following lines:

    maven {
        url("https://plugins.gradle.org/m2/")
    }
    

提交回复
热议问题