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


Solutions on the web

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

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

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

Solution icon of stackoverflow
via Stack Overflow by Guy Balas
, 1 year ago
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.