# compose


03/03/2024, 8:32 AM
I am getting a weird error when trying to run @preview mode - I get rendering issues and a generic error saying "missing classes" - I have upgraded to latest version of studio and am running gradle 8.4 and all the latest compose deps
i am also getting a ton of "unresolved references" now in the "project errors" tab, but the bits it is complaining about are fine and have no red underlines or anything of that sort
and also, "@Composable invocations can only happen from the context of a @Composable function" but the function is set with that tag. It seems something is broken with imports and not sure where to start

Stylianos Gakis

03/03/2024, 10:17 AM
Try doing a clear caches and restart. Also do you experience the same by creating a brand new compose project where everything should be setup for you already, because it may be that you're missing some dependencies or whatever