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

Offen
#301 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 6 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
android

Rechercherichtung

Beginne bei der android_sdk-Repo-Regel und der android_sdk_repository-Konfiguration und konzentriere dich auf deren Abhängigkeit von build-tools/$version/mainDexClasses.rules. Reproduziere den Fehler mit api_level 34 und build_tools_version 33.0.0 und überprüfe anschließend, dass das Bauen eines android_*-Ziels nicht mehr von der gelöschten Datei abhängt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Java
Sterne
205
Forks
113
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus bazelbuild/rules_android

Alle Issues in bazelbuild/rules_android

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.