@echo off
set JAVA_HOME=D:\qclaw file\jdk-17.0.12+7
set ANDROID_HOME=D:\qclaw file\android-sdk
set ANDROID_SDK_ROOT=D:\qclaw file\android-sdk
set PATH=%JAVA_HOME%\bin;%PATH%

cd /d "C:\Users\Administrator\.qclaw\workspace\SafeCheckIn-v3"

echo Building SafeCheckIn v3.0 APK...
echo.
echo [编译中...请等待]
echo.

call gradlew.bat compileDebugKotlin 2>&1 | findstr /C:"e:" /C:"error:" > kotlin_errors.txt

echo Kotlin 错误：
type kotlin_errors.txt

echo.
pause