-
Notifications
You must be signed in to change notification settings - Fork 106
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
Can't build the project if app is a root module #188
Comments
Does this module have the compose dependencies set up? It looks like you might not have the compose dependencies in the new module where you moved this root to. |
Wanted to check again and see if you were able to resolve this issue with what I recommended |
I didn't get to it yet. But the 'app' module doesn't have Compose dependencies, so it's most likely the cause. |
Yeah that checks out as that's what the stack trace was pointing to as well. |
Hi @vinaygaba. I have added compose dependencies to the app module and the error is gone and I can build the project. However when I start the ShowKase activity, it crashes with this exception:
Any ideas? |
Any updates @vinaygaba? It's currently blocking usage of the library and I don't know how to proceed (only to for library and modify it somehow). I promise that if this is solved, I will write a blogpost a promote this library :) |
@davidvavra I was on vacation, sorry about th delay! These kind of errors are usually when you are using a different version of kotlin/Compose than what the library is using. Could you tell me which version of compose you are trying it with? |
This library is using 1.0.3. I can probably publish the library with the latest version if compose of that helps. Unfortunately this is a Compose related nuance as they build against specific versions of Kotlin |
I checked and we are using same versions - Compose 1.0.3 and Kotlin 1.5.30. It was working when the root module was a nested module and not 'app' module, so I think the problem is somewhere else. |
@vinaygaba I spent hours debugging dependencies and then I found out this was missing:
🤦♂️ So the issues is solved, but I think documentation should be improved (with dependency requirements for root module). |
This is actually a compose requirement and has very little to do with Showkase. Since it's a Jetpack Compose only library, the assumption is that Compose is setup to work correctly in your codebase. |
Our case is that all UI is in feature modules and those modules have correct Compose dependencies. We try to keep |
Sounds like I can maybe add this detail in the setup to be explicit that Compose dependencies were needed. I'm glad it resolved for you though! Excited for you to try it out :) |
Hi, we have a multi-module project. Previously I had one module 'main' with some submodules containing previews and it worked. But we also have some modules which are not dependencies of 'main' module. Only the top-level 'app' module has a dependency to all modules. I tried to move
@ShowkaseRoot
to the 'app' module.Now building project fails with this exception:
Any ideas what might help?
The text was updated successfully, but these errors were encountered: