// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral() google() jcenter() maven { url 'https://developer.huawei.com/repo/' } // 华为 maven 仓库地址 } dependencies { classpath 'com.android.tools.build:gradle:4.2.2' classpath 'com.google.gms:google-services:4.3.3' classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.10' classpath "com.tencent.android.tpns:tpnsplugin:1.7.0" //tpns集成插件 classpath 'com.huawei.agconnect:agcp:1.3.1.300' // 华为推送 gradle 插件依赖 // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } configurations.all { resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds' } } allprojects { repositories { google() jcenter() maven { url "https://jitpack.io" } maven { url 'https://developer.huawei.com/repo/' } // 华为 maven 仓库地址 maven { url 'https://maven.aliyun.com/nexus/content/repositories/releases/' } // 阿里短视频 flatDir { //所有的module的repositories下把library module中的libs目录添加到依赖关系中 dirs project(':KlcUtils').file('libs') dirs project(':KlcBase').file('libs') dirs project(':libLiveCloud').file('libs') dirs project(':KlcLiveCloud').file('libs') dirs project(':libStorage').file('libs') dirs project(':libCamera').file('libs') } } } task clean(type: Delete) { delete rootProject.buildDir }