https://kotlinlang.org logo
#compose
Title
# compose
v

Vincent Williams

02/02/2021, 12:15 AM
Does anyone here use compose in a multimodule project? It seems to work fine in single module but I get the above error in a multimodule setup
👍🏻 1
j

JulianK

02/02/2021, 7:02 AM
Yes, I am. Although compose is only activated for the app module, i had different (room related) errors in previous versions when enabling compose for everything.
👍🏻 1
v

Vincent Williams

02/02/2021, 8:47 PM
Interesting. What compose version are you using and what android studio version? I cant figure out why my project builds but doesnt have access to any of the methods at runtime
Could I maybe see the relevant app gradle file?
j

JulianK

02/03/2021, 8:17 AM
I'm using compose alpha 11 and AS canary 5. All compose compile configuration is inside the app/build.gradle. Compose dependencies are there, too. It's not any different than a single module project, as no module other than app is using compose. You could start with a single module app, add compose to the app module and then add other modules. This is my setup.
3 Views