-
Notifications
You must be signed in to change notification settings - Fork 308
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
Support Jetpack Compose previews in Android Studio #2765
Comments
I was recently experimenting with the compose preview and was able to get it working locally, this would require a couple of changes upstream. The issues I've found:
I'm more than happy to give it a shot and create the PRs with my proposals it would be great though if someone who is more familiar with the codebase could give a few insights on the solutions I proposed. |
I work on the Android Studio for Blaze team, so I'm aware of some of the issues, but we do not have the bandwidth to officially support this for Bazel users. But here are some pointers:
Even after all of this, there are some more gotchas (mainly around R class resolution). Re: PRs, I think a solution for the |
@sgowroji would you be able to help triage this one? |
@idanakav are you currently using this/is it still working? I cherry picked your branch into the latest release, and I'm getting errors like "Cannot obtain the application ID." |
Have a working solution for Dolphin: ergatta#1 |
Currently when you import an Android Studio project that builds an app using Jetpack Compose UI, it will fail to display compose previews.
The expected behavior is that Android Studio should recognize when a Kotlin file contains a composable
@Preview
and open the compose designer plugin shown here.The text was updated successfully, but these errors were encountered: