NullPointer Exception when using Espresso

前端 未结 5 1065
孤独总比滥情好
孤独总比滥情好 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:39

    Your value of instrumentation->android:name should be "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner" not "android.test.InstrumentationTestRunner".

    And then be sure to select it when configuring your junit test: enter image description here

    I posted a quick setup tut on my blog if you need more guidance.

提交回复
热议问题