java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.xylife.community.bean.Exercise

mobile-open.com | 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

    Retrofit 泛型解析遇到com.google.gson.internal.LinkedTreeMap cannot be cast to xx.bean | 阳和移动开发

    mobile-open.com | 8 months ago
    java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.xylife.community.bean.Exercise
  2. 0

    2015-07-28 FennecAndroid Release 39 Startup Crash Report

    mozilla.com | 3 months ago
    java.lang.ClassCastException: java.lang.String cannot be cast to android.view.View$OnLayoutChangeListener

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.google.gson.internal.LinkedTreeMap cannot be cast to com.xylife.community.bean.Exercise

      at com.xylife.community.adapter.ExerciseListAdapter.onBindViewHolder()
    2. com.xylife.community
      ExerciseListAdapter.onBindViewHolder
      1. com.xylife.community.adapter.ExerciseListAdapter.onBindViewHolder(ExerciseListAdapter.java:36)
      1 frame
    3. jp.wasabeef.recyclerview
      AnimationAdapter.onBindViewHolder
      1. jp.wasabeef.recyclerview.adapters.AnimationAdapter.onBindViewHolder(AnimationAdapter.java:54)
      1 frame
    4. com.cundong.recyclerview
      HeaderAndFooterRecyclerViewAdapter.onBindViewHolder
      1. com.cundong.recyclerview.HeaderAndFooterRecyclerViewAdapter.onBindViewHolder(HeaderAndFooterRecyclerViewAdapter.java:258)
      1 frame
    5. Android v7
      RecyclerView.onLayout
      1. android.support.v7.widget.RecyclerViewAdapter.bindViewHolder(RecyclerView.java:5504)
      2. android.support.v7.widget.RecyclerViewRecycler.getViewForPosition(RecyclerView.java:4617)
      3. android.support.v7.widget.LinearLayoutManagerLayoutState.next(LinearLayoutManager.java:1994)
      4. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1390)
      5. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1353)
      6. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)
      7. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028)
      8. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2906)
      9. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3283)
      9 frames
    6. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:15718)
      2. android.view.ViewGroup.layout(ViewGroup.java:5039)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      5. android.view.View.layout(View.java:15718)
      6. android.view.ViewGroup.layout(ViewGroup.java:5039)
      7. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1077)
      8. android.view.View.layout(View.java:15718)
      9. android.view.ViewGroup.layout(ViewGroup.java:5039)
      10. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      11. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      12. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      13. android.view.View.layout(View.java:15718)
      14. android.view.ViewGroup.layout(ViewGroup.java:5039)
      14 frames
    7. Android Support v4
      ViewPager.onLayout
      1. android.support.v4.view.ViewPager.onLayout(ViewPager.java:1695)
      1 frame
    8. Android Platform
      View.layout
      1. android.view.View.layout(View.java:15718)
      2. android.view.ViewGroup.layout(ViewGroup.java:5039)
      3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      4. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      5. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      6. android.view.View.layout(View.java:15718)
      7. android.view.ViewGroup.layout(ViewGroup.java:5039)
      8. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      9. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      10. android.view.View.layout(View.java:15718)
      11. android.view.ViewGroup.layout(ViewGroup.java:5039)
      12. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      13. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      14. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      15. android.view.View.layout(View.java:15718)
      16. android.view.ViewGroup.layout(ViewGroup.java:5039)
      17. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      18. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      19. android.view.View.layout(View.java:15718)
      20. android.view.ViewGroup.layout(ViewGroup.java:5039)
      21. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      22. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      23. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      24. android.view.View.layout(View.java:15718)
      25. android.view.ViewGroup.layout(ViewGroup.java:5039)
      26. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      27. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      28. android.view.View.layout(View.java:15718)
      28 frames