D8 fails while dexing gradle-api-8.11.1.jar during Android instrumented tests
Summary This postmortem analyzes a failure where D8 crashes while dexing gradle-api-8.11.1.jar during Android instrumented tests. The issue appears only in connectedDebugAndroidTest and is caused by Gradle’s own internal Multi‑Release JAR leaking onto the androidTest runtime classpath, where D8/Desugar cannot process it correctly. Root Cause The underlying problem is that gradle-api-8.11.1.jar is being added to … Read more