Skip to content

Build failed when adding Mockmp to an initial KMP project #85

@hantsy

Description

@hantsy

I tried to add Mockmp to my example project, which just include the initial codes from the KMP wizard, when run ./gradlew :composeApp:build -x test and got the following exceptions.

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':composeApp:mockmpExtractExpectKt' (type 'MocKMPExtractExpectKt').
  - Method 'execute' is private and annotated with @TaskAction.

    Reason: Annotations on private methods are ignored.

    Possible solutions:
      1. Make the method public.
      2. Annotate the public version of the method.

    For more information, please refer to https://docs.gradle.org/8.12/userguide/validation_problems.html#private_method_must_not_be_annotated in the Gradle documentation.

The source codes: https://github.com/hantsy/cargotracker-regapp-kotlin-multiplatform/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions