java.lang.ClassCastException: android.widget.ExpandableListConnector cannot be cast to com.xera.deviceinsight.home.ExpandableListAdapter

Stack Overflow | Zidane | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    I dont understand why I am getting a fatal exception in my onChildClick method for my expandable list view

    Stack Overflow | 2 months ago | Zidane
    java.lang.ClassCastException: android.widget.ExpandableListConnector cannot be cast to com.xera.deviceinsight.home.ExpandableListAdapter
  2. 0
    samebug tip
    Check if you imported android.support.v4.app.FragmentManager and not android.app.FragmentManager. Check for naming problems in your xml files as well, might have inconsistencies!
  3. 0
    samebug tip
    Also, check if you're not using android.support.v4.app.FragmentTransaction with android.app.Fragment, as they're not totally compatible.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Last screen(activity) keeps crashing

    Stack Overflow | 1 year ago | dabroman
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.widget.ExpandableListConnector cannot be cast to com.xera.deviceinsight.home.ExpandableListAdapter

      at com.xera.deviceinsight.home.CostCentreListFragment$1.onChildClick()
    2. com.xera.deviceinsight
      CostCentreListFragment$1.onChildClick
      1. com.xera.deviceinsight.home.CostCentreListFragment$1.onChildClick(CostCentreListFragment.java:88)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.widget.ExpandableListView.handleItemClick(ExpandableListView.java:712)
      2. android.widget.ExpandableListView.performItemClick(ExpandableListView.java:651)
      3. android.widget.AbsListView$PerformClick.run(AbsListView.java:3014)
      4. android.widget.AbsListView$3.run(AbsListView.java:3865)
      5. android.os.Handler.handleCallback(Handler.java:808)
      6. android.os.Handler.dispatchMessage(Handler.java:103)
      7. android.os.Looper.loop(Looper.java:193)
      8. android.app.ActivityThread.main(ActivityThread.java:5299)
      8 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame