更新基础类库,减少类库级联引用。修改编译适配应用目标。

This commit is contained in:
ZhanGSKen
2025-11-13 07:21:45 +08:00
parent c30588f174
commit b93434887d
10 changed files with 122 additions and 35 deletions

View File

@@ -18,18 +18,22 @@ def genVersionName(def versionName){
}
android {
compileSdkVersion 32
buildToolsVersion "32.0.0"
// 1. compileSdkVersion必须 ≥ targetSdkVersion建议直接等于 targetSdkVersion30
compileSdkVersion 30
// 2. buildToolsVersion需匹配 compileSdkVersion建议使用 30.x.x 最新稳定版(无需高于 compileSdkVersion
buildToolsVersion "30.0.3" // 这是 30 对应的最新稳定版,避免使用 beta 版
defaultConfig {
applicationId "cc.winboll.studio.aes"
minSdkVersion 24
minSdkVersion 23
targetSdkVersion 30
versionCode 1
// versionName 更新后需要手动设置
// 项目模块目录的 build.gradle 文件的 stageCount=0
// Gradle编译环境下合起来的 versionName 就是 "${versionName}.0"
versionName "15.10"
versionName "15.11"
if(true) {
versionName = genVersionName("${versionName}")
}