java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer

Stack Overflow | Drew Furniss | 6 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

    Hashmap Long to Integer ClassCastException

    Stack Overflow | 6 months ago | Drew Furniss
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Long cannot be cast to java.lang.Integer

      at game.drew.com.respy.User.User.getCoinCount()
    2. game.drew.com
      ProfileFragment.onCreateView
      1. game.drew.com.respy.User.User.getCoinCount(RespyUser.java:78)
      2. game.drew.com.game.Gameplay.ProfileFragment.onCreateView(ProfileFragment.java:226)
      2 frames
    3. Android Support v4
      FragmentManagerImpl.moveToState
      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)
      3 frames