Cannot resolve external dependency org.jetbrains.kotlin:kotlin-sam-with-receiver:1.5.31 because no repositories are defined

780 Views Asked by At

Trying to add buildSrc to manage dependencies getting the following error: Error while evaluating property 'filteredArgumentsMap' of task ':buildSrc:compileKotlin'

1

There are 1 best solutions below

0
Md. Shofiulla On BEST ANSWER

Add this

repositories {
    mavenCentral()
}

in the build.gradle.kts file after the plugins block to solve.