[Bug]: Run Preview on emulator/device not working for core:designsystem

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

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

Đánh giá

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

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi NiaButtonPreview - Dark theme trong Android Studio Koala và so sánh các bản xem trước trong core:designsystem với các bản xem trước đang hoạt động trong core:ui, bao gồm cách cả hai module được kết nối với module app. Hoàn thành khi các bản xem trước trong core:designsystem có thể chạy trên trình giả lập hoặc thiết bị mà không gặp lỗi cấu hình chạy không được hỗ trợ.

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

Mô tả

bug
Is there an existing issue for this?
  • I have searched the existing issues
Is there a StackOverflow question about this issue?
  • I have searched StackOverflow
What happened?

Android Studio version: Koala Feature Drop | 2024.1.2
Ref: 447cd7eba311c9cb4b4f302bf632fe8bd4e9784c (latest main branch as of this writing)

When trying to run a for example the NiaButtonPreview inside the core:designsystem package, I get this error:

Error: Run configuration NiaButtonPreview - Dark theme is not supported in the current project.
Cannot obtain the package.

The same issue appears for all the other previews in core:designsystem, but the previews in core:ui work fine.

Is this some limitation of Compose and/or Android Studio? As I can't really find any significant configuration changes between core:ui and core:designsystem, they both are direct dependencies of the app module.

Relevant logcat output

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
Ngôn ngữ chính
Kotlin
Star
22.1k
Fork
4.7k
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 android/nowinandroid

Tất cả issue của android/nowinandroid

Issue tương tự

Thêm issue về Kotlin

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.