java.lang.ClassCastException

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


Solutions on the web19668

Solution icon of icesoft
via Icesoft by lfcnassif, 1 year ago
java.lang.Integer cannot be cast to java.lang.Float

Solution icon of github
via GitHub by mbastian
, 1 year ago
java.lang.Float cannot be cast to java.lang.Integer

Solution icon of github
via GitHub by Tamagotono
, 9 months ago
java.lang.Integer cannot be cast to java.lang.Float

Solution icon of github
via GitHub by ZEROX7
, 7 months ago
java.lang.Integer cannot be cast to java.lang.Float

Solution icon of github
java.lang.Float cannot be cast to java.lang.Integer

Solution icon of github
java.lang.Float cannot be cast to java.lang.Integer

Solution icon of github
via GitHub by ZEROX7
, 7 months ago
java.lang.Integer cannot be cast to java.lang.Float

Solution icon of stackoverflow
via Stack Overflow by user3008754
, 1 year ago
java.lang.Float cannot be cast to java.lang.Integer

Solution icon of youtrack
java.lang.Float cannot be cast to java.lang.Integer

Solution icon of github
java.lang.Integer cannot be cast to java.lang.Float

Stack trace

  • java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Float at android.app.SharedPreferencesImpl.getFloat(SharedPreferencesImpl.java:256) at com.badlogic.gdx.backends.android.AndroidPreferences.getFloat(AndroidPreferences.java:101) at de.ej.facharbeitsspiel.Tools.GamePreferences.load(GamePreferences.java:65) at de.ej.facharbeitsspiel.MainClass.create(MainClass.java:26) at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:275) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1633) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1354)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.