// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() maven { url 'http://maven.benyanyi.com/nexus/content/repositories/mylove/' } } dependencies { classpath "com.android.tools.build:gradle:4.1.2" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() maven { url 'http://maven.benyanyi.com/nexus/content/repositories/mylove/' } //解决中文乱码问题 tasks.withType(Javadoc) { //兼容中文 options.addStringOption('Xdoclint:none', '-quiet') options.addStringOption('encoding', 'UTF-8') options { encoding "UTF-8" charSet 'UTF-8' links "http://docs.oracle.com/javase/7/docs/api" } } } } task clean(type: Delete) { delete rootProject.buildDir }