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

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

    compile 'com.google.android.gms:play-services:8.4.0' crashes on mobile

    Google Groups | 10 months ago | Mauro Micó Ebro
    java.lang.NoClassDefFoundError: com.myproject.Assets
  2. 0

    FATAL EXCEPTION: GLThread on 1st launch

    Stack Overflow | 8 months ago | ketty
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Libgdx 1.9.0 crashes on Note 4

    GitHub | 1 year ago | sarkanyi
    com.badlogic.gdx.utils.GdxRuntimeException: Error extracting the OpenGL version: OpenGL ES 3.1V@104.0 (GIT@I4ea93f0e25)

    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.Integer cannot be cast to java.lang.Float

      at android.app.SharedPreferencesImpl.getFloat()
    2. Android Platform
      SharedPreferencesImpl.getFloat
      1. android.app.SharedPreferencesImpl.getFloat(SharedPreferencesImpl.java:256)
      1 frame
    3. libGDX Android Backend
      AndroidPreferences.getFloat
      1. com.badlogic.gdx.backends.android.AndroidPreferences.getFloat(AndroidPreferences.java:101)
      1 frame
    4. de.ej.facharbeitsspiel
      MainClass.create
      1. de.ej.facharbeitsspiel.Tools.GamePreferences.load(GamePreferences.java:65)
      2. de.ej.facharbeitsspiel.MainClass.create(MainClass.java:26)
      2 frames
    5. libGDX Android Backend
      AndroidGraphics.onSurfaceChanged
      1. com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:275)
      1 frame
    6. Android Platform
      GLSurfaceView$GLThread.run
      1. android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1633)
      2. android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1354)
      2 frames