// Top-level build file where you can add configuration options common to all sub-projects/modules. //plugins { // alias(libs.plugins.androidApplication) apply false //} //最新版的Android studio已经将配置转移到settings.gradle文件中了,要正常编译的话需要将多余的项注释掉 buildscript { repositories { google() jcenter() mavenCentral() maven { url "https://maven.aliyun.com/repository/google" } maven { url "https://maven.aliyun.com/repository/public" } maven { url "https://maven.aliyun.com/nexus/content/repositories/releases/" } maven { url "https://maven.aliyun.com/repository/jcenter" } maven { url 'https://www.jitpack.io' } maven { url 'https://jitpack.io' } } dependencies { classpath 'com.android.tools.build:gradle:7.4.1' classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0' } } allprojects { repositories { google() jcenter() maven { url "https://maven.aliyun.com/repository/google" } maven { url "https://maven.aliyun.com/repository/public" } maven { url "https://maven.aliyun.com/nexus/content/repositories/releases/"} maven { url "https://maven.aliyun.com/repository/jcenter" } maven { url 'https://www.jitpack.io' } maven { url 'https://jitpack.io' } } } task clean(type: Delete) { delete rootProject.buildDir } ext { // 统一版本入口 //App版本号 versionCode = 101 versionName = "1.0.1" // 支持Android版本 buildToolsVersion = "33.0.0" minSdkVersion = 23 targetSdkVersion = 33 compileSdkVersion = 33 // 支持包 supportVersion = "28.0.0" //butterknife = "8.8.1" butterknife = "10.0.0" //设置applicationId(这里很重要,两个相同applicationId的apk不同同时安装在同一台Android手机中) applicationId= "com.bonait.yteccj" }