Android Espresso IntentsMatcher适用于新设备,但不算旧

我有一个Espresso单元测试,似乎在较新的设备上工作,但在API 17设备上失败。 这是测试:

Intents.init() [... more setup] onView(withId(R.id.username)) .perform(typeText("username")) .perform(closeSoftKeyboard()) onView(withId(android.R.id.button1)).perform((click())) // This part fails intended(hasComponent(AcceptedActivity::class.java.name)) 

错误是:

 android.support.test.espresso.base.DefaultFailureHandler$AssertionFailedWithCauseError: Wanted to match 1 intents. Actually matched 0 intents. 

我已经试过在intended被调用之前睡了1000毫秒的线程,但这似乎没有帮助。

任何想法,为什么它成功的一些设备,但不是旧的?