Skip to content

fix(ci): stop setup-android from requesting the removed 'tools' package - #46

Merged
JasonWildMe merged 1 commit into
wildlife-reidfrom
fix/ci-setup-android-packages
Sep 24, 2026
Merged

JasonWildMe merged 1 commit into
wildlife-reidfrom
fix/ci-setup-android-packages

Conversation

@JasonWildMe

Copy link
Copy Markdown

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 SDK step, before any project code runs.

android-actions/setup-android@v3 installs tools platform-tools by default. Google's SDK repository no longer has the legacy tools package, so sdkmanager exits 1 with Warning: Failed to find package 'tools'. That takes down test, lint and android-build. typecheck doesn't set up the SDK, so it still passes.

This PR passes packages: 'platform-tools' to every setup-android step (3 in ci.yml, 1 in release.yml). Gradle already installs the build-tools and platforms it needs.

Type of Change

  • Chore (build process, CI, dependency updates, etc.)

Checklist

General

  • I have performed a self-review of my code
  • My changes generate no new warnings or errors

Security

  • No secrets, API keys, or credentials are included in the code

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.

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>
@JasonWildMe

Copy link
Copy Markdown
Author

/gemini review

@JasonWildMe JasonWildMe self-assigned this Sep 23, 2026

@BMichaelJ BMichaelJ left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@JasonWildMe
JasonWildMe merged commit f25a28b into wildlife-reid Sep 24, 2026
7 of 8 checks passed
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.

2 participants