Gary Sieling

Fixing Gradle error: Cannot infer Scala class path because no repository is declared for the project.

When you get this error:

Cannot infer Scala class path because no repository is declared for the project.

This means the maven repository is not set up – if you add the following it will work. This allows gradle to resolve dependencies on it’s own.

repositories {
    mavenCentral()
}
Exit mobile version