This commit is contained in:
@@ -30,13 +30,14 @@ jobs:
|
||||
java -version
|
||||
gradle --version
|
||||
|
||||
# 生成 Gradle wrapper (使用 Gradle 8.2)
|
||||
echo "=== 生成 Gradle Wrapper ==="
|
||||
gradle wrapper --gradle-version 8.2
|
||||
# 设置 Android SDK 环境变量
|
||||
export ANDROID_HOME=/opt/android-sdk
|
||||
export ANDROID_SDK_ROOT=$ANDROID_HOME
|
||||
export PATH=$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/34.0.0:$PATH
|
||||
|
||||
# 编译 Debug APK - 彻底禁用 Daemon 和所有可能导致崩溃的功能
|
||||
# 直接使用系统 Gradle 8.14.4 编译(避免 Gradle 8.2 wrapper 在 Alpine 上的 JVM 崩溃问题)
|
||||
echo "=== 开始编译 ==="
|
||||
./gradlew assembleDebug \
|
||||
gradle assembleDebug \
|
||||
--no-daemon \
|
||||
--stacktrace \
|
||||
--no-watch-fs \
|
||||
|
||||
Reference in New Issue
Block a user