java.lang.ClassCastException: android.widget.ImageView cannot be cast to android.view.ViewGroup

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 Peter Nielsen
, 1 year ago
android.widget.ImageView cannot be cast to android.view.ViewGroup
via Stack Overflow by Ivan
, 1 year ago
android.support.v7.widget.AppCompatTextView cannot be cast to android.view.ViewGroup
via Appcelerator JIRA by Manish Budhiraja, 1 year ago
ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup
via Appcelerator JIRA by Manish Budhiraja, 1 year ago
via Stack Overflow by rahul vyas
, 1 year ago
android.support.v7.widget.AppCompatButton cannot be cast to android.view.ViewGroup
via Stack Overflow by abff
, 1 year ago
android.widget.ImageView cannot be cast to android.view.ViewGroup
java.lang.ClassCastException: android.widget.ImageView cannot be cast to android.view.ViewGroup
at android.support.v4.app.BackStackRecord.configureTransitions(BackStackRecord.java:1165)
at android.support.v4.app.BackStackRecord.beginTransition(BackStackRecord.java:1057)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:662)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:152)
at android.app.ActivityThread.main(ActivityThread.java:5507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.