Missing `android_device`
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
- 32/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- android
- Lĩnh vực
- mobile-dev, testing
Hướng nghiên cứu
Bắt đầu với tài liệu kiểm thử instrumentation Android được liên kết và tái hiện bazel query được示 với rules_android 0.6.6 trên Bazel 8.4.2. So sánh lỗi android_device bị thiếu với các flag của trình giả lập cục bộ được nêu trong issue; công việc được xem là hoàn tất khi có tài liệu rõ ràng về workflow trình giả lập được Bazel 8 hỗ trợ hoặc phương án thay thế cho workflow đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bazel 8 removed all native Android rules, including android_device, and I can't find any information about it.
How can I use emulators with bazel 8?
I wanted to set up an instrumentation test:
Stacktrace
bazel query --output=build @android_test_support//tools/android/emulated_devices/generic_phone:android_23_x86
ERROR: Traceback (most recent call last):
File "/home/simeonwarren/.cache/bazel/_bazel_simeonwarren/8d894fd52f9ebddc50ede8e0430ca405/external/+_repo_rules+android_test_support/tools/android/emulated_devices/generic_phone/BUILD.bazel", line 13, column 12, in <toplevel>
make_device(
File "/home/simeonwarren/.cache/bazel/_bazel_simeonwarren/8d894fd52f9ebddc50ede8e0430ca405/external/+_repo_rules+android_test_support/tools/android/emulated_devices/macro/make_device.bzl", line 120, column 16, in make_device
new_devices(
File "/home/simeonwarren/.cache/bazel/_bazel_simeonwarren/8d894fd52f9ebddc50ede8e0430ca405/external/+_repo_rules+android_test_support/tools/android/emulated_devices/macro/make_device.bzl", line 258, column 48, in new_devices
_new_devices_for_image_and_emulator(
File "/home/simeonwarren/.cache/bazel/_bazel_simeonwarren/8d894fd52f9ebddc50ede8e0430ca405/external/+_repo_rules+android_test_support/tools/android/emulated_devices/macro/make_device.bzl", line 327, column 24, in _new_devices_for_image_and_emulator
make_android_device(
File "/home/simeonwarren/.cache/bazel/_bazel_simeonwarren/8d894fd52f9ebddc50ede8e0430ca405/external/+_repo_rules+android_test_support/tools/android/emulated_devices/macro/make_device.bzl", line 350, column 11, in make_android_device
native.android_device(
Error: no native function or rule 'android_device'
Environment:
- Rules:
bazel_dep(name = "rules_android", version = "0.6.6") - OS:
Fedora Linux 41 (Server Edition) - Bazel:
8.4.2
It seems like I can use a local emulator, so it's not as big of a problem as I thought:
Bazel also supports testing directly on a locally launched emulator or connected device. Pass the flags --test_strategy=exclusive and --test_arg=--device_broker_type=LOCAL_ADB_SERVER to enable local testing mode. If there is more than one connected device, pass the flag --test_arg=--device_serial_number=$device_id where $device_id is the id of the device/emulator listed in adb devices.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bazelbuild/rules_android
-
build_java8_legacy_dex.sh does not set JAVA_RUNFILES for the d8/r8 launchersCó thể đã có người làm @TrapsterDK đã nhận 17 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
bazelbuild/rules_android#599 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
`Desugar` actions don't run on multiplex workersCó thể đã có người làm @lukaciko đã nhận 46 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
bazelbuild/rules_android#539 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
bazelbuild/rules_android#535 · 2 reaction ·
Maintainer thường phản hồi trong vòng 6 ngày
-
desugar_globals output is not reproducible (zip entry order varies)Có thể đã có người làm @TrapsterDK đã nhận 6 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
bazelbuild/rules_android#610 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 42/100
bazelbuild/rules_android#602 ·
Maintainer thường phản hồi trong vòng 6 ngày
Tất cả issue của bazelbuild/rules_android
Issue tương tự
-
[P2] 生产环境下启动门闩的失败明细不进容器标准输出Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Lincoln-cn/JAiRouter#1473 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Link not working in the feedback concerning String.format() in exercise 'Tim from Marketing'Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
exercism/java-analyzer#379 ·
-
area: ui bug priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
tetsuji16/microProject#1893 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
liberation-data/fornax4j#325 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: FE and Kinesis extraction pipes render flow starting at the centre and scroll the source arm backwardsCó thể đã có người làm @chonkzillaofficial đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
BCCE-team/BuildCraft#85 ·