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

mobile-open.com | 4 months ago
  1. 0

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

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

    Android: Loop for is getting java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast

    Stack Overflow | 5 months ago | Clever Almeida
    java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to br.com.gerticonsultoria.easyrentrider.model.ChatUser
  3. 0

    gson Convert from json to List<>

    Stack Overflow | 2 months ago | hezhujun
    java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.hezhujun.match.pojo.User
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GSON from JSON error when not finding correct object

    Stack Overflow | 2 years ago | TorK
    java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to testpack.GsonJson$Passenger
  6. 0

    Please help me see the code .Use Gson parse json.is there some code need to edit?

    Stack Overflow | 8 months ago | CutePander
    java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.teco.powercloud.network.TecomPPAccountInfo

    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

      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