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 web17690

Solution icon of appcelerator
via Appcelerator JIRA by Ishan Singh, 8 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 stackoverflow
Unable to start activity ComponentInfo{tanav.sharma/tanav.sharma.TanavActivityOrder}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.String[]

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.pra1.savingdatasample/com.example.pra1.savingdatasample.MainActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

Solution icon of github
via GitHub by mvysny
, 10 months ago
Unable to start activity ComponentInfo{sk.baka.aedict3/sk.baka.aedict3.ConfigActivity}: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

Solution icon of stackoverflow
via Stack Overflow by Sean Kurian
, 2 months ago
Unable to start activity ComponentInfo{com.example.sean.cookappreal/com.example.sean.cookappreal.LoginActivity}: java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.TextView

Solution icon of github
Unable to start activity ComponentInfo{com.scwang.refreshlayout/com.scwang.refreshlayout.activity.practice.WeiboPracticeActivity}: java.lang.ClassCastException: android.widget.ScrollView cannot be cast to android.support.v4.widget.NestedScrollView

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.abc.activities/com.abc.activities.activities.SplashActivity}: java.lang.ClassCastException: android.support.v7.widget.ContentFrameLayout cannot be cast to android.support.v7.widget.ContentFrameLayout

Solution icon of stackoverflow
Unable to start activity ComponentInfo{es.in2.otr.app.im/es.in2.otr.app.im.app.WelcomeActivity}: java.lang.ClassCastException: android.app.Application cannot be cast to es.in2.otr.app.im.app.ImApp

Solution icon of stackoverflow
Unable to instantiate activity ComponentInfo{ssip.ssip/ssip.ssip.DocumentationDef}: java.lang.ClassCastException: ssip.ssip.DocumentationDef cannot be cast to android.app.Activity

Solution icon of stackoverflow
via Stack Overflow by Mark James
, 8 months ago
Unable to instantiate activity ComponentInfo{com.example.xxxx/com.example.xxxx.MainActivity}: java.lang.ClassCastException: com.example.xxxx.MainActivity cannot be cast to android.app.Activity

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.