I\'m having this error whilst compiling Instrumentation tests.
Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/rafa
In gradle.properties add android.enableD8=true This should work.
gradle.properties
android.enableD8=true
Please note that there is a known bug when you export and upload the apk to play store with d8 enable. The app will not run on some devices when downloaded from play store.
https://issuetracker.google.com/issues/64740479