Robolectric unit tests fail after Multidex

后端 未结 1 915
死守一世寂寞
死守一世寂寞 2021-02-03 18:20

So I recently merged my robolectric 3.0 upgrade with our mainline, which had added multidex support to our application. Unfortunately, this had the unfortunate side effect of ca

相关标签:
1条回答
  • 2021-02-03 19:06

    Just add multi-dex shadow dependency:

    testImplementation "org.robolectric:shadows-multidex:4.0.1"
    

    If you are using Robolectric < 3.4 instead use:

    testImplementation "org.robolectric:multidex:3.4.2"
    
    0 讨论(0)
提交回复
热议问题