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

Stack Overflow | Mahdi Yusefi | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    View cannot be cast to ViewGroup in fragment with sliding menu

    Stack Overflow | 9 months ago | Mahdi Yusefi
    java.lang.ClassCastException: android.view.View cannot be cast to android.view.ViewGroup

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.view.View cannot be cast to android.view.ViewGroup

      at com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.attachToActivity()
    2. com.jeremyfeinstein.slidingmenu
      SlidingMenu.attachToActivity
      1. com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.attachToActivity(SlidingMenu.java:318)
      2. com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.attachToActivity(SlidingMenu.java:292)
      2 frames
    3. mahdi.yusefi.qrcodereader
      MapActivity$1.onMarkerClick
      1. mahdi.yusefi.qrcodereader.MapActivity.initSlideMenu(MapActivity.java:124)
      2. mahdi.yusefi.qrcodereader.MapActivity.access$000(MapActivity.java:26)
      3. mahdi.yusefi.qrcodereader.MapActivity$1.onMarkerClick(MapActivity.java:62)
      3 frames
    4. com.google.android
      n$a.onTransact
      1. com.google.android.gms.maps.GoogleMap$10.a(Unknown Source)
      2. com.google.android.gms.maps.internal.n$a.onTransact(Unknown Source)
      2 frames
    5. Android Platform
      Binder.transact
      1. android.os.Binder.transact(Binder.java:380)
      1 frame