Fix: Add JVM flags to prevent Alpine JVM crash
Android Build / build (push) Failing after 10s

This commit is contained in:
amos
2026-06-02 10:57:51 +08:00
parent 2ad7efb30e
commit 6b5d67c683
+8 -2
View File
@@ -26,9 +26,15 @@ jobs:
echo "=== 生成 Gradle Wrapper ==="
gradle wrapper --gradle-version 8.2
# 编译 Debug APK
# 编译 Debug APK (禁用 daemon 和文件监控,避免 Alpine JVM 崩溃)
echo "=== 开始编译 ==="
./gradlew assembleDebug --no-daemon --stacktrace
./gradlew assembleDebug \
--no-daemon \
--stacktrace \
--no-watch-fs \
--no-configuration-cache \
-Dorg.gradle.daemon=false \
-Dorg.gradle.internal.native.headers.unresolved.dependencies.ignore=true
# 验证输出
echo "=== 编译完成 ==="