java.lang.RuntimeException: Unable to create application sk.baka.aedict3.AedictApp: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

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 GitHub by mvysny
, 1 year ago
Unable to create application sk.baka.aedict3.AedictApp: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
via Stack Overflow by Unknown author, 2 years ago
Unable to create application de.hs.karlsruhe.hskabot.ws13.BtConnect: java.lang.ClassCastException: de.hs.karlsruhe.hskabot.ws13.BtConnect cannot be cast to de.hs.karlsruhe.hskabot.ws13.GetData
via GitHub by telergyhd
, 1 year ago
Unable to create application com.gui.launcher.MyApplication: java.lang.RuntimeException: Cannot load WebView
via GitHub by neurodroid
, 1 year ago
Unable to create application csh.cryptonite.CryptoniteApp: java.lang.NullPointerException
via xda-developers.com by Unknown author, 2 years ago
Unable to create application com.android.phone.PhoneApp: java.lang.SecurityException
via GitHub by craigj
, 2 years ago
Unable to create application com.fluffyduck.mallard.MallardApp: java.lang.NullPointerException
java.lang.RuntimeException: Unable to create application sk.baka.aedict3.AedictApp: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
at android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:224)
at android.preference.Preference.getPersistedString(Preference.java:1406)
at android.preference.ListPreference.onSetInitialValue(ListPreference.java:278)
at android.preference.Preference.dispatchSetInitialValue(Preference.java:1322)
at android.preference.Preference.onAttachedToHierarchy(Preference.java:1134)
at android.preference.PreferenceGroup.addPreference(PreferenceGroup.java:163)
at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:104)
at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:45)
at android.preference.GenericInflater.rInflate(GenericInflater.java:488)
at android.preference.GenericInflater.rInflate(GenericInflater.java:493)
at android.preference.GenericInflater.rInflate(GenericInflater.java:493)
at android.preference.GenericInflater.inflate(GenericInflater.java:326)
at android.preference.GenericInflater.inflate(GenericInflater.java:263)
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:269)
at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:482)
at sk.baka.aedict3.AedictApp.onCreate(AedictApp.java:113)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391)
at android.app.ActivityThread.access$1300(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

Users with the same issue

3 times, 11 months ago
2 times, 1 year ago
2 times, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

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