bazelbuild / bazelbuild/continuous-integration
macOS CI machines have outdated Android build tools (30.0.3 instead of 36.1.0)
- Dominant language
- Python
- Stars
- 302
- Forks
- 194
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 41
Description
The macOS CI machines appear to have Android build tools version `30.0.3` installed. That's surprising because the setup script `macos/mac-android.sh` specifies version `36.1.0`. This causes builds using `rules_android` v0.7.1+ to fail, as they require build tools `35.0.0` or newer.
## Reproduction
Any project using `rules_android` >= 0.7.1 with `android_sdk_repository_extension` will fail on macOS CI.
Example failure: https://buildkite.com/bazel/rules-jvm-external/builds/5625#019c426f-06f3-4b7c-af28-64068f2c7b4c
PR that triggered it: https://github.com/bazel-contrib/rules_jvm_external/pull/1536
## Error Message
```
ERROR: .../external/rules_android+/rules/android_sdk_repository/rule.bzl:139:13:
An error occurred during the fetch of repository 'rules_android++android_sdk_repository_extension+androidsdk':
Traceback (most recent call last):
File ".../external/rules_android+/rules/android_sdk_repository/rule.bzl", line 139, column 13, in _android_sdk_repository_impl
fail("Bazel requires Android build tools version %s or newer, %s was provided" % (
Error in fail: Bazel requires Android build tools version 35.0.0 or newer, 30.0.3 was provided
```
## Environment
- **Machine**: `bk-macos-intel-qswt` (macOS Intel)
- **Platform**: `darwin-x86_64`
- **Bazel version**: 9.0.0
Contributor guide
Assessment
This issue has not been assessed yet.