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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by erik4thewinners
, 11 months ago
via Stack Overflow by I don't know what im doing
, 3 months ago
java.lang.Integer cannot be cast to java.lang.Float
via Stack Overflow by Guy Balas
, 2 years ago
java.lang.Integer cannot be cast to java.lang.Float
via GitHub by mfietz
, 2 years ago
java.lang.Integer cannot be cast to java.lang.Float
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Float
at android.app.SharedPreferencesImpl.getFloat(SharedPreferencesImpl.java:256)
at de.ej.facharbeitsspiel.Tools.GamePreferences.load(GamePreferences.java:65)
at de.ej.facharbeitsspiel.MainClass.create(MainClass.java:26)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1633)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1354)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.