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

オープン
#301 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 6 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
android

調査の方向性

android_sdk リポジトリルールと android_sdk_repository 設定から始め、build-tools/$version/mainDexClasses.rules への依存に焦点を当てます。api_level 34 と build_tools_version 33.0.0 で失敗を再現し、その後、android_* ターゲットのビルドが削除されたファイルに依存しなくなっていることを確認します。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Java
スター
205
フォーク
113
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bazelbuild/rules_android のほかの issue

bazelbuild/rules_android の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。