Fachschaft07/fs-android-app

Version check failed

FHellmann opened this issue · 0 comments

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fk07/edu.hm.cs.fs.app.ui.MainActivity}: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2462)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2522)
    at android.app.ActivityThread.access$900(ActivityThread.java:154)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1389)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:224)
    at android.app.ActivityThread.main(ActivityThread.java:5514)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
    at android.app.SharedPreferencesImpl.getInt(SharedPreferencesImpl.java:242)
    at edu.hm.cs.fs.app.util.VersionManager.getLastVersion(VersionManager.java:35)
    at edu.hm.cs.fs.app.util.VersionManager.checkVersions(VersionManager.java:27)
    at edu.hm.cs.fs.app.ui.MainActivity.setupVersionManager(MainActivity.java:96)
    at edu.hm.cs.fs.app.ui.MainActivity.onCreate(MainActivity.java:71)
    at android.app.Activity.performCreate(Activity.java:6271)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2415)
    ... 9 more