Hi, I'm unable to run any instrumented tests from ...
# android
l
Hi, I'm unable to run any instrumented tests from my Android library because trying to do so results in the following error:
Copy code
Error:Execution failed for task ':preferences:transformClassesWithDexForDebugAndroidTest'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lsplitties/preferences/DefaultPreferences$Companion;
The same tests worked in the past, but now, Gradle says my library's own code is defined in multiple dex files, while I have no duplicated classes in my code. Building the libraries and the sample depending on them works fine, only tests are failing to build. I get the error when I try to run the test here: https://github.com/LouisCAD/Splitties/blob/9e91aa7597a6eff9fa7b9416040d15096a738308/preferences/src/androidTest/java/splitties/preferences/PerformanceTests.kt#L44 Not sure what is causing this issue… hope some can help me. My project is open source, so you can experiment freely if you want to try to help