Skip to content

ci: stop asking the Android SDK for the obsolete tools package - #185

Merged
acamarata merged 1 commit into
mainfrom
ci/setup-android-obsolete-tools
Sep 14, 2026
Merged

acamarata merged 1 commit into
mainfrom
ci/setup-android-obsolete-tools

Conversation

@acamarata

Copy link
Copy Markdown
Collaborator

Red on main

Warning: Failed to find package 'tools'
Error: The process '/usr/local/lib/android/sdk/cmdline-tools/20.0/bin/sdkmanager'
       failed with exit code 1

Not caused by the merge it appeared on

run sha Android job
17:59 today 54261129 success
20:41 today 0fa163c5 failure

Nothing about the job changed between those two runs, and it dies inside android-actions/setup-android — before pnpm install, so the dependency bumps in 0fa163c5 cannot reach it.

The action was used with no inputs, so it installs its default package set, which includes tools. That package has been obsolete for years, and cmdline-tools 20.0 — which the runner image picked up today — no longer serves it.

Fix

- uses: android-actions/setup-android@v4
  with:
    packages: ''

The action then installs nothing and the job uses the SDK the runner image already ships. platform-tools and build-tools are present there, which is all gradlew assembleDebug needs.

Scope

Android is not a required context on this branch — those are Gitleaks and CodeQL Analysis — so this was not blocking any merge. But a red main is a red main, and this one will recur on every push until it is fixed.

nchat main went red on the Android debug APK job:

  Warning: Failed to find package 'tools'
  Error: The process '/usr/local/lib/android/sdk/cmdline-tools/20.0/bin/sdkmanager'
         failed with exit code 1

Not caused by anything in this repo. The job passed at 17:59 today on 5426112
and failed at 20:41 on 0fa163c with no change to the job, and it dies inside
android-actions/setup-android before any step of ours runs — well before
`pnpm install`, so the dependency bumps in that merge cannot reach it.

The action was used with no inputs, so it installs its default package set, and
that set includes `tools`. `tools` has been obsolete for years and cmdline-tools
20.0, which the runner image picked up today, no longer serves it.

Pass `packages: ''` so the action installs nothing and the job uses the SDK the
runner image already ships. platform-tools and build-tools are present there,
which is all `gradlew assembleDebug` needs.

Android is not a required context on this branch (those are Gitleaks and CodeQL
Analysis), so this was not blocking merges — but a red main is a red main.
@github-actions

Copy link
Copy Markdown

PR Checks Summary

Check Status
Lint & Format ⏭️ skipped
Type Check ⏭️ skipped
Unit Tests ⏭️ skipped
Build ⏭️ skipped

All checks passed! Ready for review.

@github-actions

Copy link
Copy Markdown

Security Scan Results: PASSED

Scanner Critical High
SAST 0 0
Dependencies 0 0

@acamarata
acamarata merged commit 0c22a32 into main Sep 14, 2026
39 checks passed
@acamarata
acamarata deleted the ci/setup-android-obsolete-tools branch September 14, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant