// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() maven { url "https://jitpack.io" } //华为推送 maven { url 'http://developer.huawei.com/repo/' } } dependencies { classpath 'com.android.tools.build:gradle:3.5.3' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.1' //华为推送 classpath 'com.huawei.agconnect:agcp:1.0.0.300' } } allprojects { repositories { google() jcenter() maven { url "https://jitpack.io" } //华为推送 maven { url 'http://developer.huawei.com/repo/' } maven { url 'https://dl.bintray.com/limaoim/maven' } // maven { // url '/Users/songlun/Desktop/workspace/androidworkspace/im_ou_android/repository' // } } } project.ext { minSdkVersion = 17 targetSdkVersion = 27 compileSdkVersion = 29 } task clean(type: Delete) { delete rootProject.buildDir }