Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hantsy opened this issue Jan 16, 2025 · 0 comments
Open

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

hantsy opened this issue Jan 16, 2025 · 0 comments

Comments

@hantsy
Copy link

hantsy commented Jan 16, 2025

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant