简体   繁体   中英

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

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

Add this

 repositories{
        mavenCentral()
    }

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM