DexIndexOverflowException Only When Running Tests

后端 未结 4 1570
面向向阳花
面向向阳花 2020-11-22 04:29

I can successfully build and run my Android app in my debug and release variants with no problem. Yet, when I try to run my new unit tests (I never had them before), I get t

4条回答
  •  萌比男神i
    2020-11-22 05:07

    If you only need multidex support for tests, you can enable it only for tests with a line like the following in your build.gradle:

    dependencies {
        ...
        androidTestCompile 'com.android.support:multidex:1.0.1'
    }
    

提交回复
热议问题