Fixed
Status Update
Comments
ga...@google.com <ga...@google.com> #2
This will be fixed in 4.2.0-alpha02. If tested app is not minified, androidTest APK will not packaged the desugared library dex.
Change: I6f05d009e1d173af2813468709477e98f197fd3a
ga...@google.com <ga...@google.com> #3
There is a separate bug to fix the issue when desugared library dex is shrunk (if tested app is shrunk or non-debuggable).
ga...@google.com <ga...@google.com> #4
The fix will also be shipped in 4.1.0-beta04
Description
From the analysis of b/158018485 the issue is that different incompatible versions of the desugared libary DEX can end up in the "App Under Test" and the "Test APK" when running instrumented tests. Even when shrinking is turned off (and the two copies are identical, so not "incompatible") the handling of duplicate classes on Art/Dalvik VMs is undefined and is known to fail on some VMs.
From the internal work document: