Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expanded preview does not work #119

Open
sooth-sayer opened this issue Nov 2, 2024 · 1 comment
Open

Expanded preview does not work #119

sooth-sayer opened this issue Nov 2, 2024 · 1 comment

Comments

@sooth-sayer
Copy link

  • Android Studio version: Android Studio Ladybug | 2024.2.1 Patch 2, Build #AI-242.23339.11.2421.12550806
  • Runtime version: 21.0.3+-79915917-b509.11 aarch64
  • VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  • Kotlin plugin: K2 mode (Beta)

There is an 'ReplyAppExpandedPreview' preview render error on MainActivity:
java. lang. ClassCastException: class com. android. layoutlib. bridge. android. BridgeContext cannot be cast to class android. app. Activity (com. android. layoutlib. bridge. android. BridgeContext and android. app. Activity are in unnamed module of loader com. intellij. ide. plugins. cl. PluginClassLoader @4c9c61ba)   at com. example. reply. ui. ReplyHomeContentKt. ReplyListAndDetailContent(ReplyHomeContent. kt:119)

Other previews render as expected

@srcarter3
Copy link

I'm seeing this now too, and I know this worked a few months ago, so I'm assuming one of the imports needs to be updated now or something... will come back and edit this comment if I find the problem package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants