ci: update Android SDK setup action - #398
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d6a3b7e. Configure here.
|
False positive — both claims are incorrect, and CI on this commit disproves them.
The SHA is a real commit. Actions resolved the step and CI passed. The finding says "GitHub Actions cannot resolve this step, so Android CI never starts." The run for this exact commit ( Likely cause: v4.0.4 shipped one day before this PR, so a model without current data would not know the tag or commit exists. The pin also resolves the Semgrep finding |

Requirements
Related issues
Unblocks #397. Its CI fails during Android SDK setup.
Describe the solution you've provided
Upgrade
android-actions/setup-androidfrom v3 to v4. Licenses are already accepted successfully; the failure happens afterward because v3 invokessdkmanager tools, and Google no longer publishes that obsolete package. Version 4 removestoolsfrom its default package list while continuing to install command-line/platform tools and accept SDK licenses.Describe alternatives you've considered
Retrying cannot fix a package removed from Google's repository. Adding a separate license-acceptance step would duplicate behavior and would not address the failing
sdkmanager toolsinvocation inside v3.Additional context
Observed error:
Warning: Failed to find package 'tools'. The upstream v4 change explicitly fixes this failure.Note
Overview
Fixes CI Android SDK setup by upgrading the shared composite CI action from
android-actions/setup-android@v3to v4.0.4 (pinned to commitbe39fa834029ff78f1a44aa3bb0819b8fc2bd8fd).v3 fails after license acceptance because it still runs
sdkmanager tools, a package Google removed from the repository (Failed to find package 'tools'). v4 stops requesting that obsolete package while still installing the command-line/platform tooling needed for./gradlewbuilds and the rest of the workflow.Reviewed by Cursor Bugbot for commit d6a3b7e. Bugbot is set up for automated code reviews on this repo. Configure here.