// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { kotlin_version = "1.3.72" appcompat = "1.2.0" dokka_version = '1.4.10.2' } repositories { google() mavenCentral() } dependencies { classpath "com.android.tools.build:gradle:4.1.3" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version" //新添加的这一classpath // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { mavenCentral() maven { url 'https://s01.oss.sonatype.org/content/repositories/releases/' // url 'https://s01.oss.sonatype.org/content/groups/staging/' } } } task clean(type: Delete) { delete rootProject.buildDir }