Sonar Plugin fails with android testFixtures enabled (Execution failed for IdentityTransform)

You can work around this issue by defining a Gradle task dependency to ensure that the missing JAR is available for the sonar task. Something like:

tasks.getByName("sonar").dependsOn(":app:createFullJarDebugTestFixtures")