java.lang.ClassCastException: android.view.View 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 Mahdi Yusefi
, 1 year ago
android.view.View cannot be cast to android.view.ViewGroup
java.lang.ClassCastException: android.view.View cannot be cast to android.view.ViewGroup
at com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.attachToActivity(SlidingMenu.java:318)
at com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.attachToActivity(SlidingMenu.java:292)
at mahdi.yusefi.qrcodereader.MapActivity.initSlideMenu(MapActivity.java:124)
at mahdi.yusefi.qrcodereader.MapActivity.access$000(MapActivity.java:26)
at mahdi.yusefi.qrcodereader.MapActivity$1.onMarkerClick(MapActivity.java:62)
at com.google.android.gms.maps.GoogleMap$10.a(Unknown Source)
at com.google.android.gms.maps.internal.n$a.onTransact(Unknown Source)
at android.os.Binder.transact(Binder.java:380)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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