// Top-level build file where you can add configuration options common to all sub-projects/modules. apply plugin: 'com.alibaba.arouter' buildscript { ext { kotlin_version = '1.4.10' compile_sdk_version = 30 build_tools_version = '30.0.2' min_sdk_verion = 26 target_sdk_version = 30 lib_version_code = 1 lib_version_name = "1.0.0" navigation_version = "2.3.0"//navigation 版本号,需要在dependencies和classpath保持一致 } repositories { google() jcenter() maven { url 'https://jitpack.io' } // 1、filedownloader 下载框架 maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } maven { url 'https://dl.bintray.com/javakam/FileOperator' } // 极光推送 华为1、 maven {url 'http://developer.huawei.com/repo/'} } dependencies { classpath 'com.android.tools.build:gradle:4.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version") //阿里 Arouter classpath "com.alibaba:arouter-register:1.0.2" // 极光推送 华为2、 classpath 'com.huawei.agconnect:agcp:1.2.1.301' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() maven { url 'https://jitpack.io' } // 1、filedownloader 下载框架 maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } maven { url 'https://dl.bintray.com/javakam/FileOperator' } // 极光推送 华为1、 maven {url 'http://developer.huawei.com/repo/'} } } task clean(type: Delete) { delete rootProject.buildDir }