Skip to content

Commit

Permalink
Remove build_tools_version and api_level
Browse files Browse the repository at this point in the history
Remove `build_tools_version` and `api_level` to let `android_sdk_repository` automatically select the latest installed version.

One of the fixes for bazelbuild/bazel#13409 (comment)
  • Loading branch information
ahumesky authored and mukundsrinivasb committed Mar 31, 2023
1 parent d3a3c30 commit 017e239
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external")

# Set the path to your local SDK installation, or use the ANDROID_HOME environment variable.
android_sdk_repository(
name = "androidsdk",
api_level = 28,
build_tools_version = "28.0.2",
# path = "/path/to/sdk",
)
android_sdk_repository(name = "androidsdk")

# Required for running emulator tests on RBE on Bazel CI
android_ndk_repository(name = "androidndk")
Expand Down

0 comments on commit 017e239

Please sign in to comment.