解决:Method setUp in android.test.AndroidTestCase not mocked

在对应的build.gradle文件中的android{}添加

testOptions {

    unitTests.returnDefaultValues = true

}

你可能感兴趣的:(解决:Method setUp in android.test.AndroidTestCase not mocked)