# moko


11/20/2023, 2:14 PM
I’m getting the following error :
Copy code
* What went wrong:
A problem was found with the configuration of task ':ui:generateMRandroidMain' (type 'GenerateMultiplatformResourcesTask').
  - Gradle detected a problem with the following location: '/Users/jeantuffier/Repos/Entur/Tavla/CommonTavla/ui/build/generated/moko/androidMain'.
    Reason: Task ':ui:compileCommonMainKotlinMetadata' uses this output of task ':ui:generateMRandroidMain' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    Possible solutions:
      1. Declare task ':ui:generateMRandroidMain' as an input of ':ui:compileCommonMainKotlinMetadata'.
      2. Declare an explicit dependency on ':ui:generateMRandroidMain' from ':ui:compileCommonMainKotlinMetadata' using Task#dependsOn.
      3. Declare an explicit dependency on ':ui:generateMRandroidMain' from ':ui:compileCommonMainKotlinMetadata' using Task#mustRunAfter.
    For more information, please refer to <> in the Gradle documentation.
Even though I added
Copy code
    .matching { == "compileCommonMainKotlinMetadata" }
    .configureEach { dependsOn("generateMRandroidMain") }
Did anyone have the same issue?