I\'ve imported an existing Gradle project to IntelliJ IDEA. I keep getting a notification:
Unindexed remote maven repositories found.
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/")
}