koin-annotations icon indicating copy to clipboard operation
koin-annotations copied to clipboard

2.0.0 build failed with Kotlin 2.1.20

Open FlowFan opened this issue 7 months ago • 8 comments
trafficstars

Describe the bug After upgrading to Kotlin 2.1.20 and open ksp2, it build failed:

    Reason: Task ':composeApp:kspDebugKotlinAndroid' uses this output of task ':composeApp:kspCommonMainKotlinMetadata' 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 ':composeApp:kspCommonMainKotlinMetadata' as an input of ':composeApp:kspDebugKotlinAndroid'.
      2. Declare an explicit dependency on ':composeApp:kspCommonMainKotlinMetadata' from ':composeApp:kspDebugKotlinAndroid' using Task#dependsOn.
      3. Declare an explicit dependency on ':composeApp:kspCommonMainKotlinMetadata' from ':composeApp:kspDebugKotlinAndroid' using Task#mustRunAfter.

To Reproduce Modify the kotlin version to 2.1.20, open ksp.useKSP2=true, and then build

FlowFan avatar Mar 28 '25 01:03 FlowFan