Skip to content

Commit 482321c

Browse files
authored
Remove build_tools_version and api_level
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)
1 parent ac535c1 commit 482321c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

WORKSPACE

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
22
load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external")
33

44
# Set the path to your local SDK installation, or use the ANDROID_HOME environment variable.
5-
android_sdk_repository(
6-
name = "androidsdk",
7-
api_level = 28,
8-
build_tools_version = "28.0.2",
9-
# path = "/path/to/sdk",
10-
)
5+
android_sdk_repository(name = "androidsdk")
116

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

0 commit comments

Comments
 (0)