icerockdev / moko-resources

Resources access for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
1.1k stars 120 forks source link

2 files found with path 'MR/base/strings.xml' in multimodular + multiplatform + compose multiplatform #499

Open r4m-mirze opened 1 year ago

r4m-mirze commented 1 year ago

I am getting following error when I use with multiplatform + jetpack compose multiplatform + multiModule application.

I have a common:ui module which has resources/MR/base/strings.xml and another feature module which included common:ui module and it also has resources/MR/base/strings.xml specific to feature module. There is no compilation error I can use both common:ui MR.strings and feature MR.strings in feature module. But when I build the application I get an error "2 files found with path 'MR/base/strings.xml' ".

image
Alex009 commented 1 year ago

error "2 files found with path 'MR/base/strings.xml'" said that your build configuration try to copy resources directory inside result jar. build config invalid - android should not copy any resources files by self. android should work only with res folder. can you show you build config?