java.lang.ClassCastException: 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 Appcelerator JIRA by Nadav Hoze, 1 year ago
java.lang.String
via Appcelerator JIRA by Nadav Hoze, 1 year ago
java.lang.String
via Stack Overflow by snapplex
, 2 years ago
java.util.ArrayList cannot be cast to java.lang.String[]
java.lang.ClassCastException: java.lang.String
at android.os.Bundle.getStringArray(Bundle.java:1459)
at com.google.android.gm.ComposeArea.initFromExtras(ComposeArea.java:624)
at com.google.android.gm.ComposeActivity.initFromExtras(ComposeActivity.java:1482)
at com.google.android.gm.ComposeActivity.finishOnCreateAfterAccountSelected(ComposeActivity.java:1020)
at com.google.android.gm.ComposeActivity.onCreate(ComposeActivity.java:259)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
at android.app.ActivityThread.access$1500(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)

Users with the same issue

2 times, 1 year ago
Once, 1 year ago
6 times, 1 year ago
Once, 1 year ago

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