The former Espresso.registerIdlingResources() method has been deprecated in favor of using the new IdlingRegistry via getInstance().register(). However, after upgrading, my test no longer work using the ElapsedTimeIdlingResource.
mElapsedTimeIdlingResource = new ElapsedTimeIdlingResource(3);
getInstance().register(mElapsedTimeIdlingResource);
// Do Something
getInstance().unregister(mElapsedTimeIdlingResource);
The former Espresso.registerIdlingResources() method has been deprecated in favor of using the new IdlingRegistry via getInstance().register(). However, after upgrading, my test no longer work using the ElapsedTimeIdlingResource.