-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathclean_build.bat
More file actions
50 lines (42 loc) · 1.19 KB
/
Copy pathclean_build.bat
File metadata and controls
50 lines (42 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
echo ============================================
echo DAVID AI - Complete Build Clean
echo ============================================
echo.
echo This will delete ALL build artifacts and caches
echo Press Ctrl+C to cancel, or
pause
echo.
echo Step 1: Stopping Gradle Daemon...
call gradlew --stop
echo.
echo Step 2: Cleaning project...
call gradlew clean
echo.
echo Step 3: Deleting .gradle directory...
if exist .gradle rmdir /s /q .gradle
echo.
echo Step 4: Deleting build directories...
if exist build rmdir /s /q build
if exist app\build rmdir /s /q app\build
echo.
echo Step 5: Deleting Gradle cache...
if exist %USERPROFILE%\.gradle\caches rmdir /s /q %USERPROFILE%\.gradle\caches
echo.
echo ============================================
echo Clean complete! Now rebuilding...
echo ============================================
echo.
echo Step 6: Building debug APK...
call gradlew assembleDebug
echo.
echo ============================================
if %ERRORLEVEL% EQU 0 (
echo BUILD SUCCESSFUL!
echo APK location: app\build\outputs\apk\debug\app-debug.apk
) else (
echo BUILD FAILED!
echo Check the error messages above.
)
echo ============================================
pause