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

Đang mở
#301 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android
Lĩnh vực
build-system, mobile-dev

Hướng nghiên cứu

Bắt đầu từ quy tắc repo android_sdk và cấu hình android_sdk_repository, tập trung vào phần phụ thuộc của nó đối với build-tools/$version/mainDexClasses.rules. Tái hiện lỗi với api_level 34 và build_tools_version 33.0.0, sau đó xác minh rằng việc build một target android_* không còn phụ thuộc vào tệp đã bị xóa.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Java
Star
205
Fork
113
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bazelbuild/rules_android

Tất cả issue của bazelbuild/rules_android

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.