The tools package is deprecated:
https://developer.android.com/tools#tools-sdk
I didn't spend a long time investigating, but it seems like Google has stopped serving the sdkmanager tools package this morning.
Leading to:
Warning: Failed to find package 'tools'
/opt/actions-runner/_work/_actions/android-actions/setup-android/9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407/dist/index.js:1823
error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
^
> Error: The process '/home/ubuntu/.android/sdk/cmdline-tools/16.0/bin/sdkmanager' failed with exit code 1
at ExecState._setResult (/opt/actions-runner/_work/_actions/android-actions/setup-android/9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407/dist/index.js:1823:25)
at ExecState.CheckComplete (/opt/actions-runner/_work/_actions/android-actions/setup-android/9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407/dist/index.js:1806:18)
at ChildProcess.<anonymous> (/opt/actions-runner/_work/_actions/android-actions/setup-android/9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407/dist/index.js:1700:27)
at ChildProcess.emit (node:events:524:28)
at maybeClose (node:internal/child_process:1104:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
If it is indeed the case that tools is no longer being served, then this repo can change this:
packages:
description: 'Additional packages to install'
required: false
default: 'tools platform-tools'
to the following:
packages:
description: 'Additional packages to install'
required: false
default: 'cmdline-tools platform-tools'
And rename references in the documentation. I am not sure if this is a breaking change or not (that would require a v5).
Consumers might be looking for tools and have to migrate.
If people are stuck in the meantime while this issue is fixed, they can do (in their Android repos):
- name: Android SDK setup
uses: android-actions/setup-android@v4
with:
packages: 'platform-tools'
Which will prevent the deprecated and problematic tools from being requested
The tools package is deprecated:
https://developer.android.com/tools#tools-sdk
I didn't spend a long time investigating, but it seems like Google has stopped serving the
sdkmanager toolspackage this morning.Leading to:
If it is indeed the case that
toolsis no longer being served, then this repo can change this:to the following:
And rename references in the documentation. I am not sure if this is a breaking change or not (that would require a v5).
Consumers might be looking for
toolsand have to migrate.If people are stuck in the meantime while this issue is fixed, they can do (in their Android repos):
Which will prevent the deprecated and problematic
toolsfrom being requested