`could not determined the dependencies of task ':c...
# intellij
k
Copy code
could not determined the dependencies of task ':compileKotlinMetadata'.
> Could not resolve all files for configuration ':kotlinCompilerClasspath'.
> Cannot resolve external dependency org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4.0-dev-4220 because no repositories are defined.
Required by:
project :
How to solve this ??
f
The error message is clear: no repositories defined. You need a repository block.
a
Add to `settings.gradle`:
Copy code
pluginManagement {
    repositories {
        maven { url '<http://dl.bintray.com/kotlin/kotlin-eap>' }
        maven { url '<http://dl.bintray.com/kotlin/kotlin-dev>' }
        mavenCentral()
        maven { url '<https://plugins.gradle.org/m2/>' }
    }
}
Add to `build.gradle`:
Copy code
repositories {
    maven { url '<http://dl.bintray.com/kotlin/kotlin-eap>' }
    maven { url '<http://dl.bintray.com/kotlin/kotlin-dev>' }
}
k
Okey. Thanks
182 Views