From 9a062c2443569f1fd41c0d4f8b03cedd0dabf58f Mon Sep 17 00:00:00 2001 From: Dasemu Date: Mon, 19 Oct 2026 04:07:55 +0200 Subject: [PATCH] fix: replace deprecated Android SDK 'tools' package in build workflow android-actions/setup-android@v3 defaults to installing the legacy 'tools platform-tools' packages; Google no longer serves 'tools', so sdkmanager exits with "Failed to find package 'tools'" and the build fails. Bump to @v4 and pin packages to 'platform-tools' explicitly in both the Gitea workflow and its GitHub mirror. Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/2-build-apk.yml | 4 +++- .github/workflows/build-apk.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/2-build-apk.yml b/.gitea/workflows/2-build-apk.yml index a443367..551adc2 100644 --- a/.gitea/workflows/2-build-apk.yml +++ b/.gitea/workflows/2-build-apk.yml @@ -43,7 +43,9 @@ jobs: java-version: '21' - name: Setup Android SDK - uses: android-actions/setup-android@v3 + uses: android-actions/setup-android@v4 + with: + packages: 'platform-tools' - name: Install dependencies run: npm ci diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 3fda03c..0774a7d 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -29,7 +29,9 @@ jobs: java-version: '21' - name: Setup Android SDK - uses: android-actions/setup-android@v3 + uses: android-actions/setup-android@v4 + with: + packages: 'platform-tools' - name: Install dependencies run: npm ci