Hello folks!
For the ones here that tried to use Compose in an Android Library Module, were you successful, or did you encounter issues? If not, I'm also interested in the exact issues you had.
No problems here. I had to move it to a library module due to a bug in the Kotlin IR compiler that crashes my main app. Glad this approach worked for me.
b
Bryan Herbst
03/11/2021, 2:07 PM
I have our core Compose components in a library module, no issues.
l
louiscad
03/11/2021, 2:14 PM
Thank you for your feedback!
I discovered my different experience was because I had forgotten to set
buildFeature.compose
to
true
in the Gradle build file. I was getting no warning in the IDE, no preview window, and unrelated errors when trying to compile the code. I thought I was going crazy!
A ticket got created by someone in the Compose team following that: https://issuetracker.google.com/issues/182459357