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

Stack Overflow | Drew Furniss | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Hashmap Long to Integer ClassCastException

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

    Fragment Manager Replace on View Pager

    Stack Overflow | 3 years ago | user3484254
    java.lang.ClassCastException: android.widget.ImageView cannot be cast to android.view.ViewGroup
  3. 0

    ViewPager-related Exception on Android 2.3.X

    Stack Overflow | 4 years ago | santirivera92
    java.lang.ClassCastException: android.widget.ImageView
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android Bundle and ClassCastException

    Stack Overflow | 5 years ago | ebolyen
    java.lang.RuntimeException: Unable to start activity ComponentInfo{<MYPACKAGENAMEHERE>/<MYPACKAGENAMEHERE>.MusicVisualizerActivity}: java.lang.ClassCastException: [Ljava.lang.Object;
  6. 0

    Can't Open Fragment when clicked button

    Stack Overflow | 2 years ago | Adhik Joshi
    java.lang.ClassCastException: android.widget.Button cannot be cast to android.view.ViewGroup

    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

      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