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

Abierto
#301 1 comentario 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 6 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
android

Línea de trabajo

Empieza por la regla de repositorio android_sdk y la configuración de android_sdk_repository, centrándote en su dependencia de build-tools/$version/mainDexClasses.rules. Reproduce el fallo con api_level 34 y build_tools_version 33.0.0 y, después, verifica que compilar un destino android_* ya no depende del archivo eliminado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Java
Estrellas
205
Forks
113
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bazelbuild/rules_android

Todos los issues de bazelbuild/rules_android

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.