绑定(bind)在运行“ApplicationTest”时为NULL,但在运行“app”时是正确的。Thispost不起作用。应用测试@RunWith(AndroidJUnit4.class)publicclassApplicationTest{@RulepublicActivityTestRulemActivityRule=newActivityTestRule(LoadingActivity.class);@TestpublicvoidloginClickMarkerAndUploadDamageReport(){UiDevicedevice=UiDevice.getInstanc