```allprojects { repositories { mavenC...
# gradle
m
Copy code
allprojects {
    repositories {
        mavenCentral()
        jcenter()
    }
}

plugins {
    kotlin("jvm") version "1.3.31"
}
r
@mingkangpan I'm struggling with this now too, so I don't know if this is right, but you could try a
buildscript
section. I have this at top level:
Copy code
buildscript {    
    repositories {
        jcenter()
    }
    dependencies {
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.31")
        classpath("org.jetbrains.kotlin:kotlin-serialization:1.3.31")
    }
}
I think the idea is that the dependencies and repositories of the buildscript itself are handled separately from the dependencies and repositories of your project code.
m
checkout my repository: https://github.com/willhaben/kotlindsl I got it running, but now I am struggling with setting up an andorid module