Skip to content

Stop installing the deprecated tools package - #538

Merged
ViliusSutkus89 merged 1 commit into
android-actions:mainfrom
vbuberen:fix/537-drop-deprecated-tools-package
Sep 17, 2026
Merged

ViliusSutkus89 merged 1 commit into
android-actions:mainfrom
vbuberen:fix/537-drop-deprecated-tools-package

Conversation

@vbuberen

Copy link
Copy Markdown
Contributor

Google no longer serves the tools package, so attempts to install tools fails with "Failed to find package 'tools'" and takes the whole action down with it as described in the #537 and I bumped into this as well:
Screenshot 2026-09-16 at 14 11 04

In this PR the default set of packages changes to only include platform-tools, which should be enough for most tasks where setup-android Action it used. The change is supposed to be safe also because most of the tools are already already on $PATH via cmdline-tools/<ver>/bin, which this action has always added — apkanalyzer, avdmanager, lint, screenshot2,sdkmanager, plus d8/r8/retrace/resourceshrinker/profgen. The emulator
split out into its own emulator package.

Changes

  • Drop tools from the default value of the packages input, leaving platform-tools. The command line tools that replaced it are already installed by this action, and there is no bare cmdline-tools package path to install instead (only versioned ones, e.g. cmdline-tools;20.0).
  • Skip tools with a warning when it is requested explicitly, so the many workflows that pass packages: 'tools platform-tools' keep working instead of failing.
  • Update the README accordingly.

Tested the change on workflows that build Android app for some Flutter projects - worked fine.

Fixes #537

Google no longer serves the `tools` package: it is gone from
repository2-3.xml, so `sdkmanager tools` fails with
"Failed to find package 'tools'" and takes the whole action down with it.

- Drop `tools` from the default value of the `packages` input, leaving
  `platform-tools`. The command line tools that replaced it are already
  installed by this action, and there is no bare `cmdline-tools` package
  path to install instead (only versioned ones, e.g. `cmdline-tools;20.0`).
- Skip `tools` with a warning when it is requested explicitly, so the
  many workflows that pass `packages: 'tools platform-tools'` keep working
  instead of failing.
- Update the README accordingly.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@baywet

baywet commented Sep 17, 2026

Copy link
Copy Markdown

calling this to your attention @ViliusSutkus89, lots of CI failures today because of it.

@enlightenedpie

enlightenedpie commented Sep 17, 2026

Copy link
Copy Markdown

@baywet The temp solution is to add a "with" block to the action in your pipeline:

- name: Setup Android SDK
  uses: android-actions/setup-android@v4
  with:
    packages: 'platform-tools'

This removes the failing tools dependency

@baywet

baywet commented Sep 17, 2026

Copy link
Copy Markdown

@enlightenedpie Thank you for the additional information. This is what I've done at the time I posted this message. But I figured it'd be far easier for the community if the action is fixed, rather than having to investigate/find the issue/update the workflow

@ViliusSutkus89

ViliusSutkus89 commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Hey folks. Let me look into this

@ViliusSutkus89
ViliusSutkus89 merged commit 7731365 into android-actions:main Sep 17, 2026
jjrasche added a commit to jjrasche/factoredui that referenced this pull request Sep 18, 2026
…op suite

setup-android v4.0.1 installs the `tools` package by default, which Google stopped
serving, so sdkmanager exits 1 before a single Gradle task runs (every run since
2026-09-17). v4.0.2 drops `tools` from the defaults (android-actions/setup-android#538);
pinned to v4.0.4 by SHA in both workflows.

Behind that, ci.yml had been red since August: it ran desktopTest behind a --tests
allowlist of 38 tests, and the suite floor of 100 fails any run that narrow. The
publish workflow already runs the whole suite and published 0.19.0 green on it, so
ci.yml now matches it — one unfiltered desktopTest, which includes the
render-correctness gate — and builds kotlin-compose-capture as publish does.
gwennlbh pushed a commit to cigaleapp/cigale that referenced this pull request Sep 21, 2026
##### [vv4.0.4](https://github.com/android-actions/setup-android/releases/tag/v4.0.4)

Add cmdline-tools 22.0

macOS URL changed for 22.0+. Fixes [#536](android-actions/setup-android#536)
##### [vv4.0.3](https://github.com/android-actions/setup-android/releases/tag/v4.0.3)

Updated dependencies. npm vulnerability list solved.
##### [vv4.0.2](https://github.com/android-actions/setup-android/releases/tag/v4.0.2)

Fix for removed tools package.

Thanks [@vbuberen](https://github.com/vbuberen)  for the pull request [#538](android-actions/setup-android#538)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

tools package is deprecated. Migrate to cmdline-tools

4 participants