Repository navigation
Pin espresso-core 3.7.0 so Compose UI tests run on Android SDK 37 - #27
Merged
Merged
Conversation
Compose ui-test pulls in espresso-core 3.5.0, whose InputManagerEventInjectionStrategy calls the hidden InputManager.getInstance(). That method no longer exists in Android SDK 37, so since the compileSdk 36 -> 37 / Robolectric 4.18.1 bump every Robolectric Compose UI test fails with NoSuchMethodException. espresso-core 3.7.0 uses Context.getSystemService(InputManager.class) on SDK 23+. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since 1.8.0 (compileSdk 36 → 37, Robolectric 4.16.1 → 4.18.1), Robolectric runs unit tests on SDK 37. Every Compose UI test in downstream modules then fails before it starts:
androidx.compose.ui:ui-test(BOM 2026.05.01, ui-test 1.11.2) pulls inespresso-core3.5.0, which reflects on the hiddenInputManager.getInstance(). That method is gone in SDK 37.espresso-core3.7.0 callsContext.getSystemService(InputManager.class)on SDK 23+ instead. It's the release that pairs with theandroidx-test1.7.0 this module already pins.This adds
espresso-core3.7.0 totestLibsand to thetestImplementation/androidTestImplementationblocks that every Skip module inherits, so Gradle resolves it over the transitive 3.5.0.Scheduled
mainbuilds of skip-ui and skip-fuse-ui have failed this way every day since 1.8.0 shipped on 2026-11-19.🤖 Generated with Claude Code