Failed to find package tools: setup-android and sdkmanager
Every Android job on every branch went red this morning, on a commit that only touched a string resource. Nothing in the workflow changed for weeks.
Warning: Failed to find package 'tools'
Error: The process '/home/ubuntu/.android/sdk/cmdline-tools/16.0/bin/sdkmanager' failed with exit code 1
The step is the ordinary android-actions/setup-android@v4, pinned, no inputs set. So the workflow is asking sdkmanager for a package called tools and sdkmanager cannot find it any more.
Google has listed tools as deprecated for a long time, and it looks like it stopped being served yesterday. There is an issue on the action, filed the same morning, already at dozens of reactions and no answer in it yet.
Rolling back to an older action tag changes nothing, which makes sense if the package is simply gone from the other end. Is there a correct fix, or is everyone waiting for a release of the action?
@ilka_nn · 2h ago
The empty-string variant is documented too, and it is the one I would pick if you install anything unusual:
packages: ''installs nothing, then you call sdkmanager yourself in a later step with the exact list you want. Slightly more yaml, no surprises the next time a default changes under you.Reply
Report