apply from: 'dependencies.gradle' buildscript { repositories { //maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} maven { url "https://jitpack.io" } jcenter() maven { url 'https://maven.google.com/' name 'Google' } maven { url 'https://dl.bintray.com/umsdk/release' } } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath "io.realm:realm-gradle-plugin:5.14.0" classpath 'com.google.gms:google-services:4.2.0' } } allprojects { repositories { //maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} maven { url "https://jitpack.io" } google() jcenter() maven { url 'https://maven.google.com/' name 'Google' } mavenCentral() maven { url 'https://dl.bintray.com/umsdk/release' } } } ext { androidCompileSdkVersion = 26 androidBuildToolsVersion = '26.0.3' androidMinSdkVersion = 16 androidTargetSdkVersion = 26 } task clean(type: Delete) { delete rootProject.buildDir }