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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
32/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
android, kotlin
領域
mobile

調査の方向性

まず Android Studio Koala で NiaButtonPreview - Dark theme の失敗を再現し、core:designsystem のプレビューと、動作している core:ui のプレビューを比較します。両方のモジュールが app モジュールにどのように接続されているかも確認してください。core:designsystem のプレビューを、サポートされていない実行構成エラーなしでエミュレーターまたはデバイス上で実行できれば完了です。

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

説明

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
主要言語
Kotlin
スター
22.1k
フォーク
4.7k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

android/nowinandroid のほかの issue

android/nowinandroid の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

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

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