Skip to content

IllegalStateException: focus search returned a view that wasn't able to take focus! #21669

@sentry

Description

@sentry

This is currently our top Sentry issue with 950 events and 724 users as of 07-Feb-25. We had hoped it was fixed by #21566 but it's still happening in 25.6 (albeit less frequently).

Sentry Issue: JETPACK-ANDROID-1338

java.lang.IllegalStateException: focus search returned a view that wasn't able to take focus!
    at android.widget.TextView.onKeyUp(TextView.java:8601)
    at android.view.KeyEvent.dispatch(KeyEvent.java:2850)
    at android.view.View.dispatchKeyEvent(View.java:13434)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at androidx.core.widget.NestedScrollView.dispatchKeyEvent(NestedScrollView.java:686)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1954)
    at com.android.internal.policy.DecorView.superDispatchKeyEvent(DecorView.java:484)
    at com.android.internal.policy.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1843)
    at android.app.Activity.dispatchKeyEvent(Activity.java:4019)
    at androidx.core.app.ComponentActivity.superDispatchKeyEvent(ComponentActivity.kt:103)

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions