buildscript { repositories { google() maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'} } dependencies { classpath 'com.android.tools.build:gradle:4.2.1' } } allprojects { repositories { flatDir { dirs 'libs' } google() maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } maven { url "https://jitpack.io" } } } allprojects { repositories { maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } maven { url 'https://maven.aliyun.com/repository/jcenter'} } } task clean(type: Delete) { delete rootProject.buildDir } tasks.withType(JavaCompile) { options.encoding = "UTF-8" }