NullPointer Exception when using Espresso

前端 未结 5 1001
孤独总比滥情好
孤独总比滥情好 2021-01-19 16:58

I\'m trying to use Espresso. But I got this error and I have no if I\'m missing some codes.

any thoughts will be highly appreciated.

error log:



        
5条回答
  •  爱一瞬间的悲伤
    2021-01-19 17:56

    If you have a dependent library with unit test applied, the libary should have same instrument setup also as below.

    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    

提交回复
热议问题