fix(ci): stop setup-android from requesting the removed 'tools' package - #46
Merged
Merged
Conversation
android-actions/setup-android@v3 installs "tools platform-tools" by default. The legacy SDK 'tools' package is no longer in Google's repository, so sdkmanager exits 1 and the test, lint and android-build jobs fail before any project code runs. Install only platform-tools; Gradle fetches the build-tools and platforms it needs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Author
|
/gemini review |
BMichaelJ
approved these changes
Sep 24, 2026
BMichaelJ
left a comment
Collaborator
There was a problem hiding this comment.
Verified the original failure against setup-android@v3's package defaults. Explicitly installing only platform-tools avoids the removed legacy tools package, covers every affected CI/release setup step, and the lint, typecheck, test, and Android build checks all pass. LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CI has been failing on every run since at least 2026-09-21 (e.g. run 35880971919). The failure is in the
Setup Android SDKstep, before any project code runs.android-actions/setup-android@v3installstools platform-toolsby default. Google's SDK repository no longer has the legacytoolspackage, sosdkmanagerexits 1 withWarning: Failed to find package 'tools'. That takes downtest,lintandandroid-build.typecheckdoesn't set up the SDK, so it still passes.This PR passes
packages: 'platform-tools'to everysetup-androidstep (3 inci.yml, 1 inrelease.yml). Gradle already installs the build-tools and platforms it needs.Type of Change
Checklist
General
Security
Related Issues
Fixes the red CI on #42, #43, #44 and the post-merge run on
wildlife-reid.Additional Notes
Workflow-only change, so there is no app code to test. CI on this PR is the verification.