编译环境参数调整

This commit is contained in:
2026-01-06 14:08:30 +08:00
parent 61cfa7f3ff
commit cce4a643e7
4 changed files with 17 additions and 9 deletions

View File

@@ -64,6 +64,11 @@ android {
dimension "WinBoLLApp"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
// 应用包输出配置
//

View File

@@ -100,12 +100,15 @@ allprojects {
}
subprojects {
// 1. 对纯 Java 模块的 JavaCompile 任务配置(升级为 Java 11
tasks.withType(JavaCompile) {
options.compilerArgs << "-parameters"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
// 可选:确保编码一致
options.encoding = "UTF-8"
}
}
}
}
task clean(type: Delete) {

View File

@@ -19,11 +19,11 @@ def genVersionName(def versionName){
android {
// 1. compileSdkVersion必须 ≥ targetSdkVersion建议直接等于 targetSdkVersion30
compileSdkVersion 30
// 关键:改为你已安装的 SDK 32≥ targetSdkVersion 30兼容已安装环境
compileSdkVersion 32
// 2. buildToolsVersion需匹配 compileSdkVersion建议使用 30.x.x 最新稳定版(无需高于 compileSdkVersion
buildToolsVersion "30.0.3" // 这是 30 对应的最新稳定版,避免使用 beta 版
// 直接使用已安装的构建工具 33.0.3(无需修改
buildToolsVersion "33.0.3"
defaultConfig {
applicationId "cc.winboll.studio.winboll"

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Sun Jan 04 09:03:20 GMT 2026
#Tue Jan 06 06:07:46 GMT 2026
stageCount=9
libraryProject=
baseVersion=15.11
publishVersion=15.11.8
buildCount=5
buildCount=10
baseBetaVersion=15.11.9