bazelbuild / bazelbuild/rules_android

android_sdk depends on non existing files when using build tools version 33

Open
#301 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
203
Forks
95
PR merge metrics
No merged PRs in 30d

Description

### Description of the bug:

The `android_sdk` repo rule depends on `build-tools/$version/mainDexClasses.rules` source file but this was deleted for build-tools version `33.0.0` (https://github.com/bazelbuild/bazel/blob/b85f2d198c99cc66013f9afb688d8fa368f9a3a6/tools/android/android_sdk_repository_template.bzl#L185) . This breaks builds when trying to update to build-tools 33.

### Which category does this issue belong to?

Android

### What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Create an android project and declare the `android_sdk_repository` in the WORKSPACE file with the following parameters.

```
android_sdk_repository(
name = "androidsdk",
api_level = 34, # The API version for Android compileSdk
build_tools_version = "33.0.0",
)
```

Building any `android_*` target will break the build.

### Which operating system are you running Bazel on?

Mac OS 13.5.2 (22G91)

### What is the output of `bazel info release`?

_No response_

### If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built Bazel.

Building git from source commit https://github.com/bazelbuild/bazel/commit/252d36384b8b630d77d21fac0d2c5608632aa393

### What's the output of `git remote get-url origin; git rev-parse master; git rev-parse HEAD` ?

_No response_

### Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.

_No response_

### Have you found anything relevant by searching the web?

_No response_

### Any other information, logs, or outputs that you want to share?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.