java.lang.RuntimeException: Unable to start activity ComponentInfo{com.meet.mysunshine/com.meet.mysunshine.SettingsActivity}: java.lang.ClassCastException: java.lang.Boolean 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

Samebug tips

,

Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by Meet Sukhwani
, 1 year ago
Unable to start activity ComponentInfo{com.meet.mysunshine/com.meet.mysunshine.SettingsActivity}: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
via Stack Overflow by Siemen Gijbels
, 2 years ago
Unable to start activity ComponentInfo{com.gijbelssiemen.list/com.gijbelssiemen.list.SettingsActivity}: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
via Stack Overflow by marc purgimon
, 1 year ago
Unable to start activity ComponentInfo{purgimon.pt13_marc_purgimon_exercici1/purgimon.pt13_marc_purgimon_exercici1.Opcions}: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
via Stack Overflow by Game Programmer
, 1 year ago
Unable to start activity ComponentInfo{com.your.app/com.your.app.activity}: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
via Stack Overflow by DEVANDRIN KUNI
, 10 months ago
Unable to start activity ComponentInfo{com.example.devandrin.myapplication/com.example.devandrin.myapplication.SettingsActivity}: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
via GitHub by lognaturel
, 8 months ago
Unable to start activity ComponentInfo{org.odk.collect.android/org.odk.collect.android.activities.SplashScreenActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.meet.mysunshine/com.meet.mysunshine.SettingsActivity}: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)

Users with the same issue

66 times, 3 weeks ago
Once, 2 months ago
33 times, 3 months ago
8 times, 3 months ago
468 times, 4 months ago

Write tip

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