From 2dbb8ba55db504bcba304a9dad39b1e21f1cbd99 Mon Sep 17 00:00:00 2001 From: Sethu Srinivasan Date: Tue, 22 Sep 2026 15:52:54 -0700 Subject: [PATCH] Fix CI: stop installing the removed Android SDK tools package. setup-android v3 asks sdkmanager for `tools`, which Google no longer serves, so every Build and CodeQL job died before Gradle ran. Co-authored-by: Cursor --- .github/workflows/build.yml | 5 ++++- .github/workflows/codeql.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d5b93f6..d1f8424 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,10 @@ jobs: java-version: '17' distribution: 'zulu' - name: Setup Android SDK - uses: android-actions/setup-android@v3 + uses: android-actions/setup-android@v4 + with: + # v3 defaulted to the removed `tools` package and sdkmanager exits 1. + packages: platform-tools - name: Cache Gradle uses: actions/cache@v4 with: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index dc83a25..6e51c6e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -28,7 +28,10 @@ jobs: distribution: 'zulu' - name: Setup Android SDK - uses: android-actions/setup-android@v3 + uses: android-actions/setup-android@v4 + with: + # v3 defaulted to the removed `tools` package and sdkmanager exits 1. + packages: platform-tools - name: Initialize CodeQL uses: github/codeql-action/init@v4