Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by BArtWell
, 1 year ago
android.view.ViewRootImpl cannot be cast to android.view.View
java.lang.ClassCastException: android.view.ViewRootImpl cannot be cast to android.view.View	at ru.myapp.package.HorizontalPersistentFocusWrapper.requestChildFocus(HorizontalPersistentFocusWrapper.java:108)	at android.view.View.handleFocusGainInternal(View.java:5465)	at android.view.ViewGroup.handleFocusGainInternal(ViewGroup.java:714)	at android.view.View.requestFocusNoSearch(View.java:8470)	at android.view.View.requestFocus(View.java:8449)	at android.view.ViewGroup.requestFocus(ViewGroup.java:2747)	at android.view.View.requestFocus(View.java:8416)	at android.support.v4.widget.NestedScrollView.arrowScroll(NestedScrollView.java:1222)	at android.support.v4.widget.NestedScrollView.executeKeyEvent(NestedScrollView.java:551)	at android.support.v4.widget.NestedScrollView.dispatchKeyEvent(NestedScrollView.java:512)	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1640)	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1640)