java.lang.RuntimeException: Unable to start activity ComponentInfo{org.kegbot.app/org.kegbot.app.SettingsActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean

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 thehijjt
, 1 year ago
Unable to start activity ComponentInfo{org.kegbot.app/org.kegbot.app.SettingsActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
via GitHub by white-gecko
, 2 years ago
Unable to start activity ComponentInfo{fr.s13d.photobackup/fr.s13d.photobackup.PBActivity}: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
via GitHub by white-gecko
, 2 years ago
Unable to start activity ComponentInfo{fr.s13d.photobackup/fr.s13d.photobackup.PBActivity}: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
via Stack Overflow by Bob Bamberg
, 2 years ago
Unable to start activity ComponentInfo{com.pcphoneconnections.threeandout/com.pcphoneconnections.threeandout.SettingsActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
via GitHub by dmsherazi
, 1 year ago
Unable to start activity ComponentInfo{net.kindows.chitchat/net.kindows.chitchat.LoginActivity}: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Boolean
via Stack Overflow by Akash Agarwal
, 2 years ago
Unable to start activity ComponentInfo{akashagarwal45.bunkeasy/akashagarwal45.bunkeasy.SubjectSettings}: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at android.app.SharedPreferencesImpl.getBoolean(SharedPreferencesImpl.java:260)
at android.preference.Preference.getPersistedBoolean(Preference.java:1691)
at android.preference.TwoStatePreference.onSetInitialValue(TwoStatePreference.java:187)
at android.preference.Preference.dispatchSetInitialValue(Preference.java:1376)
at android.preference.Preference.onAttachedToHierarchy(Preference.java:1171)
at android.preference.PreferenceGroup.addPreference(PreferenceGroup.java:167)
at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:108)
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.inflate(GenericInflater.java:326)
at android.preference.GenericInflater.inflate(GenericInflater.java:263)
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272)
at org.kegbot.app.SettingsActivity$KegeratorFragment.onCreate(SettingsActivity.java:101)
at android.app.Fragment.performCreate(Fragment.java:2031)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:863)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.app.BackStackRecord.run(BackStackRecord.java:834)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
at android.app.Activity.performStart(Activity.java:6005)

Users with the same issue

262 times, 4 months ago
Once, 1 year ago
5 times, 1 year ago

Write tip

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