Skip to content

Commit b8f8a35

Browse files
Fix Windows bazel build by unsetting ANDROID_HOME
Prevent transitive rules_android dependency from attempting to configure an Android SDK repository on CI environments where ANDROID_HOME is set but contains an incompatible Android SDK build tools version. PiperOrigin-RevId: 934041346
1 parent 4414207 commit b8f8a35

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# This allows Bazel to automatically pick up the `windows` config on Windows.
33
common --enable_platform_specific_config
44

5+
# Prevent rules_android (pulled in transitively) from attempting to configure an Android SDK repository
6+
# using the preinstalled Android SDK on CI machines (e.g. Kokoro Windows), which fails build tools version checks.
7+
common --repo_env=ANDROID_HOME=
8+
59
# Disable automatic creation of `__init__.py` files, which prevent multiple
610
# workspaces from providing files with the same package prefix (e.g., "cel").
711
# See https://github.com/bazelbuild/rules_python/issues/330.

0 commit comments

Comments
 (0)