Chris Fillmore
09/12/2022, 7:49 PM@Preview
working in a multi module project. Has anyone had trouble doing this?Chris Fillmore
09/12/2022, 7:49 PM1.3.0-beta02
, compiler version 1.3.1
, Kotlin version 1.7.10
.Chris Fillmore
09/12/2022, 7:50 PM:core
module with a few reusable `@Composable`s. My :app
module depends on :core
and uses these composables.Chris Fillmore
09/12/2022, 7:51 PM:app
which uses several composables from :core
. The @Preview
for this screen works well.Chris Fillmore
09/12/2022, 7:51 PM:core
. But I always get the error:
The project needs to be compiled for the preview to be displayed
Chris Fillmore
09/12/2022, 7:52 PM@Preview
function from :core
into :app
, the preview renders fine. I can’t figure out what the difference is between these two modules. Versions are all the same.Alex Vanyo
09/12/2022, 8:09 PM:core
library modules? You could also look at https://github.com/android/nowinandroid as a reference for a multi-module setup. There was at least one weird preview-related dependency issue IIRCChris Fillmore
09/12/2022, 8:11 PMChris Fillmore
09/12/2022, 8:13 PM:app
also has navigation and material iconsAlex Vanyo
09/12/2022, 8:14 PMnavigation
might be the culprit, if it pulls in viewmodel
-related depsChris Fillmore
09/12/2022, 8:15 PMChris Fillmore
09/12/2022, 8:15 PMChris Fillmore
09/20/2022, 3:30 PMAlex Vanyo
09/20/2022, 3:38 PM