Unable to mutate android instrumented test

Hello,

I am running android project and I want to get mutations for instrumented tests. Here is my environment:
Java 17, Gradle 8.0.2.

I used the following version:

id 'pl.droidsonroids.pitest' version '0.2.16'

When I execute ./gradlew pitest, I get the following error:

> Task :app:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':app:compileReleaseJavaWithJavac' (type 'JavaCompile').
  - Gradle detected a problem with the following location: 'C:\Users\vivo\AndroidStudioProjects\checkpitjunit5\app\build\intermediates\javac\release\classes'.

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

    Please refer to https://docs.gradle.org/8.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.

I tried to add this configuration in my gradle.build file with no success. This is what I have added:

if(tasks.findByName("pitestDebug")){
        tasks.pitestDebug.mustRunAfter("compileReleaseJavaWithJavac")
    }

I also tried the followings in separate occasion with no success :

  1. tasks.named('pitestDebug').mustRunAfter('compileReleaseJavaWithJavac')
  2. task("pitestDebug1").dependsOn("compileReleaseJavaWithJavac")
  3. tasks("compileReleaseJavaWithJavac").dependsOn("pitestDebug")

However, I am able to get all the classes but zero mutants for each class.

What could be the needed configuration in gradle file?

Is there any working tutorial or example for Android, Gradle, Java, Groovy?

Thank you.