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

GitHub | MunirAhmad | 8 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

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

    GitHub | 8 months ago | MunirAhmad
    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.navdrawer.SimpleSideDrawer.<init>()
    2. com.navdrawer
      SimpleSideDrawer.<init>
      1. com.navdrawer.SimpleSideDrawer.<init>(SimpleSideDrawer.java:240)
      2. com.navdrawer.SimpleSideDrawer.<init>(SimpleSideDrawer.java:193)
      2 frames
    3. browseactivitiesreeboks
      BrowseActivitiesByCatagoryActivity.onCreateView
      1. browseactivitiesreeboks.BrowseActivitiesByCatagoryActivity.setUpViews(BrowseActivitiesByCatagoryActivity.java:127)
      2. browseactivitiesreeboks.BrowseActivitiesByCatagoryActivity.onCreateView(BrowseActivitiesByCatagoryActivity.java:104)
      2 frames
    4. Android Support v4
      FragmentManagerImpl$1.run
      1. android.support.v4.app.Fragment.performCreateView(Fragment.java:1974)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
      4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
      5. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
      6. android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
      6 frames
    5. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:158)
      4. android.app.ActivityThread.main(ActivityThread.java:7224)
      4 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames