Hello everyone! did anyone encountered this? im st...
# compose-destinations
r
Hello everyone! did anyone encountered this? im stuck with that error now and i have no clue what to do with it, happened during setting up multi module project for V2 destinations
Copy code
Type com.ramcosta.composedestinations.generated.NavGraphs is defined multiple times: /moduleAPath/.transforms/ca2fe8db27d2bab2ec3be6fd49580987/transformed/classes/classes_dex/classes.dex
/mobuleBPath/.transforms/ca2fe8db27d2bab2ec3be6fd49580987/transformed/classes/classes_dex/classes.dex
r
Are you configuring the modules with ksp block on build gradle? There are a couple configurations like moduleName and package name for generated code that will be helpful.
Copy code
ksp {
    // used on some of the generated code, including default package name
    arg("compose-destinations.moduleName", "profile")
    // and if you want to generate mermaid graph files for this module's graphs: 
    // (ideally use the same path for all modules, so that navigation in the html works well)
    arg("compose-destinations.htmlMermaidGraph", "$rootDir//navigation-docs")
    arg("compose-destinations.mermaidGraph", "$rootDir/navigation-docs")
}
r
yes i am adding these to root and both children modules, ofcourse with unique "parameter" names arg("compose-destinations.moduleName", "parameter") edit: just noticed i had these in wrong enclosure will try once again after some fixes
After properly setting up ksp enclosure that did the trick, i was searching all around but not in that place thanks for pointing that out!
👍 1
r
Great! Glad to help
🙌 1
d
☝️ Hero we need but don't deserve 🦸
❤️ 1
☝️ 1