From ca089428b803f4dca0b326d1ddca31186670afb8 Mon Sep 17 00:00:00 2001 From: "zhimin.liu" Date: Fri, 17 Jul 2026 19:15:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(system):1.=E8=B0=83=E6=95=B4=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E8=84=9A=E6=9C=AC.=202.=E7=94=A8=E4=BB=A5=E4=B8=8B?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E5=BC=80=E5=90=AF=E7=B3=BB=E7=BB=9F=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E8=AF=A5=E7=A8=8B=E5=BA=8F=E6=B5=AE=E7=AA=97=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=9A=20adb=20shell=20appops=20set=20io.github.miu?= =?UTF-8?q?zarte.scrcpyforandroid=20SYSTEM=5FALERT=5FWINDOW=20allow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build_apk.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build_apk.ps1 b/build_apk.ps1 index 51a3f8f..dafa19d 100644 --- a/build_apk.ps1 +++ b/build_apk.ps1 @@ -1,6 +1,6 @@ param( [ValidateSet("debug", "release")] - [string]$BuildType = "release" + [string]$BuildType = "debug" ) $ErrorActionPreference = "Stop" @@ -21,6 +21,11 @@ Write-Host "" Push-Location $ScriptDir try { + # 停止旧 daemon(可能被 VS Code JRE 污染),失败也忽略 + Write-Host ">>> Stopping old Gradle daemon..." -ForegroundColor Gray + .\gradlew.bat --stop 2>$null + Write-Host "" + if ($BuildType -eq "release") { Write-Host ">>> Building Release APK..." -ForegroundColor Green .\gradlew.bat :app:assembleRelease --console=plain