java.lang.RuntimeException

Unable to start activity ComponentInfo{com.ishan.pushnotifications/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashMap


Solutions on the web42106

Solution icon of appcelerator
via Appcelerator JIRA by Ishan Singh, 6 months ago
Unable to start activity ComponentInfo{com.ishan.pushnotifications/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashMap

Solution icon of appcelerator
via Appcelerator JIRA by Stefan Schüller, 1 year ago
Unable to start activity ComponentInfo{com.test/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy

Solution icon of appcelerator
via Appcelerator JIRA by Stefan Schüller, 1 year ago
Unable to start activity ComponentInfo{com.test/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy

Solution icon of github
Unable to start activity ComponentInfo{net.teamworkpm.phone/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to android.text.Spannable

Solution icon of github
via GitHub by annamf
, 1 year ago
Unable to start activity ComponentInfo{com.epi.cuponisimo/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: org.appcelerator.titanium.TiActivity cannot be cast to android.support.v7.app.ActionBarActivity

Solution icon of appcelerator
via Appcelerator JIRA by Fokke Zandbergen, 1 year ago
Unable to start activity ComponentInfo{test.android/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: android.graphics.drawable.ColorDrawable cannot be cast to android.support.v7.widget.RoundRectDrawable

Solution icon of appcelerator
via Appcelerator JIRA by Fokke Zandbergen, 1 year ago
Unable to start activity ComponentInfo{test.android/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: android.graphics.drawable.ColorDrawable cannot be cast to android.support.v7.widget.RoundRectDrawable

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.teemosoft.ujmart/com.example.teemosoft.ujmart.Dashboard}: java.lang.ClassCastException: java.util.HashMap cannot be cast to android.database.Cursor

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.wakeup/com.example.wakeup.AlarmListActivity}: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.List

Solution icon of stackoverflow
Unable to start activity ComponentInfo{tanav.sharma/tanav.sharma.TanavActivityOrder}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.String[]

Stack trace

  • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ishan.pushnotifications/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashMap at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3254) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350) at android.app.ActivityThread.access$1100(ActivityThread.java:222) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7229) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashMap at ti.modules.titanium.ui.widget.TiUIText.processProperties(TiUIText.java:219) at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1173) at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507) at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498) at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:476) at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:514) at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498) at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:476) at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:514) at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498) at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:476) at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:677) at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:571) at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:262) at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33) at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:559) at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:673) at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18) at android.app.Activity.performCreate(Activity.java:6876) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207) ... 9 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.