https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Andrii Yanechko

12/02/2023, 9:25 PM
🧵 Issue updating Gradle version to
8.0
(from
7.5
)
1
After updating I see this issue and I'm not able to sync the project anymore:
Copy code
A problem was found with the configuration of task ':code:client:common:utils:utils-local-storage:copyCommonizeCInteropForIde' (type 'CopyCommonizeCInteropForIdeTask').


* Exception is:
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':code:client:common:utils:utils-local-storage:copyCommonizeCInteropForIde' (type 'CopyCommonizeCInteropForIdeTask').

Reason: Task ':code:client:common:utils:utils-local-storage:copyCommonizeCInteropForIde' uses this output of task ':code:client:common:utils:local-storage:commonizeCInterop' 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 ':code:client:common:utils:local-storage:commonizeCInterop' as an input of ':code:client:common:utils:utils-local-storage:copyCommonizeCInteropForIde'.
      2. Declare an explicit dependency on ':code:client:common:utils:local-storage:commonizeCInterop' from ':code:client:common:utils:utils-local-storage:copyCommonizeCInteropForIde' using Task#dependsOn.
      3. Declare an explicit dependency on ':code:client:common:utils:local-storage:commonizeCInterop' from ':code:client:common:utils:utils-local-storage:copyCommonizeCInteropForIde' using Task#mustRunAfter.
Gradle: 8.0 Android Gradle Plugin: 8.0 Kotlin version: 1.9.20
c

Chrimaeon

12/02/2023, 9:40 PM
is
CopyCommonizeCInteropForIdeTask
a custom task you created? So since Gradle 8, tasks that depend on each other need to declare their dependency. https://docs.gradle.org/current/userguide/validation_problems.html#implicit_dependency
a

Andrii Yanechko

12/02/2023, 11:03 PM
No, it's from the
cinterop
, however the issue was in module's naming, I used custom
name
for that module, after fixing the name it works as expected
4 Views