Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# EspressoException\n\nSummary: \\| [\\[Expand All\\]](#) \n\nEspressoException\n=================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\n\n`\npublic\n\n\ninterface\nEspressoException\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------------|\n| android.support.test.espresso.EspressoException |\n\n|---|---|\n| Known Indirect Subclasses [AmbiguousElementMatcherException](/reference/android/support/test/espresso/web/matcher/AmbiguousElementMatcherException),[AmbiguousViewMatcherException](/reference/android/support/test/espresso/AmbiguousViewMatcherException),[AppNotIdleException](/reference/android/support/test/espresso/AppNotIdleException),[IdlingResourceTimeoutException](/reference/android/support/test/espresso/IdlingResourceTimeoutException),[InjectEventSecurityException](/reference/android/support/test/espresso/InjectEventSecurityException),[NoActivityResumedException](/reference/android/support/test/espresso/NoActivityResumedException),[NoMatchingRootException](/reference/android/support/test/espresso/NoMatchingRootException),[NoMatchingViewException](/reference/android/support/test/espresso/NoMatchingViewException),[NoRemoteEspressoInstanceException](/reference/android/support/test/espresso/remote/NoRemoteEspressoInstanceException),[PerformException](/reference/android/support/test/espresso/PerformException),[RemoteEspressoException](/reference/android/support/test/espresso/remote/RemoteEspressoException),[RemoteProtocolException](/reference/android/support/test/espresso/remote/RemoteProtocolException) |---------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AmbiguousElementMatcherException](/reference/android/support/test/espresso/web/matcher/AmbiguousElementMatcherException) | An exception which indicates that for a given XPath there were multiple Elements found when only 1 element was expected. | | [AmbiguousViewMatcherException](/reference/android/support/test/espresso/AmbiguousViewMatcherException) | An exception which indicates that a Matcher matched multiple views in the hierarchy when only one view was expected. | | [AppNotIdleException](/reference/android/support/test/espresso/AppNotIdleException) | An exception which indicates that the App has not become idle even after the specified duration. | | [IdlingResourceTimeoutException](/reference/android/support/test/espresso/IdlingResourceTimeoutException) | Indicates that an [IdlingResource](/reference/android/support/test/espresso/IdlingResource), which has been registered with the framework, has not idled within the allowed time. | | [InjectEventSecurityException](/reference/android/support/test/espresso/InjectEventSecurityException) | An checked [Exception](https://developer.android.com/reference/java/lang/Exception.html) indicating that event injection failed with a [SecurityException](https://developer.android.com/reference/java/lang/SecurityException.html). | | [NoActivityResumedException](/reference/android/support/test/espresso/NoActivityResumedException) | An exception which indicates that there are no activities in stage RESUMED. | | [NoMatchingRootException](/reference/android/support/test/espresso/NoMatchingRootException) | Indicates that a given matcher did not match any [Root](/reference/android/support/test/espresso/Root)s (windows) from those that are currently available. | | [NoMatchingViewException](/reference/android/support/test/espresso/NoMatchingViewException) | Indicates that a given matcher did not match any elements in the view hierarchy. | | [NoRemoteEspressoInstanceException](/reference/android/support/test/espresso/remote/NoRemoteEspressoInstanceException) | An [Exception](https://developer.android.com/reference/java/lang/Exception.html) which indicates that there are no remote Espresso clients present. | | [PerformException](/reference/android/support/test/espresso/PerformException) | Indicates that an exception occurred while performing a ViewAction on the UI thread. | | [RemoteEspressoException](/reference/android/support/test/espresso/remote/RemoteEspressoException) | Espresso exception representing any runtime related errors in a multi-process environment | | [RemoteProtocolException](/reference/android/support/test/espresso/remote/RemoteProtocolException) | Espresso exception representing any protocol related errors in a multi-process environment | ||\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nUsed for identifying an exception as coming from the [Espresso](/reference/android/support/test/espresso/Espresso) framework. \n-\n\n Interfaces\n ----------\n\n - [EspressoException](/reference/android/support/test/espresso/EspressoException)\n - [FailureHandler](/reference/android/support/test/espresso/FailureHandler)\n - [IdlingResource](/reference/android/support/test/espresso/IdlingResource)\n - [IdlingResource.ResourceCallback](/reference/android/support/test/espresso/IdlingResource.ResourceCallback)\n - [UiController](/reference/android/support/test/espresso/UiController)\n - [ViewAction](/reference/android/support/test/espresso/ViewAction)\n - [ViewAssertion](/reference/android/support/test/espresso/ViewAssertion)\n - [ViewFinder](/reference/android/support/test/espresso/ViewFinder)\n - [ViewInteractionComponent](/reference/android/support/test/espresso/ViewInteractionComponent)\n-\n\n Classes\n -------\n\n - [AmbiguousViewMatcherException.Builder](/reference/android/support/test/espresso/AmbiguousViewMatcherException.Builder)\n - [DataInteraction](/reference/android/support/test/espresso/DataInteraction)\n - [DataInteraction.DisplayDataMatcher](/reference/android/support/test/espresso/DataInteraction.DisplayDataMatcher)\n - [Espresso](/reference/android/support/test/espresso/Espresso)\n - [IdlingPolicies](/reference/android/support/test/espresso/IdlingPolicies)\n - [IdlingPolicy](/reference/android/support/test/espresso/IdlingPolicy)\n - [IdlingRegistry](/reference/android/support/test/espresso/IdlingRegistry)\n - [NoMatchingViewException.Builder](/reference/android/support/test/espresso/NoMatchingViewException.Builder)\n - [PerformException.Builder](/reference/android/support/test/espresso/PerformException.Builder)\n - [Root](/reference/android/support/test/espresso/Root)\n - [Root.Builder](/reference/android/support/test/espresso/Root.Builder)\n - [ViewInteraction](/reference/android/support/test/espresso/ViewInteraction)\n-\n\n Exceptions\n ----------\n\n - [AmbiguousViewMatcherException](/reference/android/support/test/espresso/AmbiguousViewMatcherException)\n - [AppNotIdleException](/reference/android/support/test/espresso/AppNotIdleException)\n - [IdlingResourceTimeoutException](/reference/android/support/test/espresso/IdlingResourceTimeoutException)\n - [InjectEventSecurityException](/reference/android/support/test/espresso/InjectEventSecurityException)\n - [NoActivityResumedException](/reference/android/support/test/espresso/NoActivityResumedException)\n - [NoMatchingRootException](/reference/android/support/test/espresso/NoMatchingRootException)\n - [NoMatchingViewException](/reference/android/support/test/espresso/NoMatchingViewException)\n - [PerformException](/reference/android/support/test/espresso/PerformException)"]]