Hi All, I am a Android developer using `gradle` in...
# community-support
s
Hi All, I am a Android developer using
gradle
in our code base. I was away from participating in community discussion from 2 years. Planning to coming back to join discussion wherever possible. Definitely
gradle
is something which I am not good at and thus seeks you advice regarding this issue.
Copy code
Execution failed for task ':app:pre*DebugAndroidTestBuild'.
> Cannot fingerprint input property 'compileVersionMap': value '{Info(group=com.google.dagger, module=dagger)=2.27,..., Info(group=com.facebook.flipper, module=flipper-network-plugin)=0.238.0, Info(group=com.facebook.flipper, module=flipper-leakcanary2-plugin)=0.238.0}' cannot be serialized.
Context: Was running a simple instrumented test and this happened.
2 day ago, I raised an issue on gradle github for any pointers https://github.com/gradle/gradle/issues/29594
In most of the cases the issue states
Conflict with dependency '...' in project ':app'. Resolved versions for app (A.B.C) and test app (X.Y.Z) differ.
This doesn't look the case for me. e.g. https://discuss.gradle.org/t/please-help-i-have-this-error/27311/2
Caused by: org.gradle.internal.snapshot.ValueSnapshottingException: Could not serialize value of type Info
Caused by: java.io.NotSerializableException: <http://com.android.build.gradle.internal.tasks.Info|com.android.build.gradle.internal.tasks.Info>
Previously, all task with Test were enabled. Removing the below enabled check from task graph works.
Copy code
gradle.taskGraph.whenReady { graph ->
  graph.allTasks.findAll { it.name ==~ /.*Test.*/ }*.enabled = true
}