I have a project that has MultiDex and it compiles the app just fine... But when I try to run the instrumented tests I get this error:
Error:Execution failed for task ':app:transformDexArchiveWithDexMergerForMinApi16StagingDebugAndroidTest'.
com.android.build.api.transform.TransformException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
I am using
testInstrumentationRunner 'com.android.test.runner.MultiDexTestRunner'
In my gradle file.
How can I make the multdex work?