java.lang.ClassCastException: android.net.Uri$StringUri cannot be cast to java.util.ArrayList

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by ssantos
, 1 year ago
android.net.Uri$StringUri cannot be cast to java.util.ArrayList
via Stack Overflow by t0m
, 8 months ago
android.net.Uri$StringUri cannot be cast to java.util.ArrayList
via Stack Overflow by Makks129
, 2 years ago
android.net.Uri$HierarchicalUri cannot be cast to java.util.ArrayList
via Stack Overflow by Unknown author, 2 years ago
**java.lang.String cannot be cast to java.util.ArrayList**
via GitHub by wninou
, 1 year ago
android.net.Uri$StringUri cannot be cast to java.util.ArrayList
via Stack Overflow by Sandip Armal Patil
, 3 months ago
android.net.Uri$HierarchicalUri cannot be cast to java.util.ArrayList
java.lang.ClassCastException: android.net.Uri$StringUri cannot be cast to java.util.ArrayList
at android.os.Bundle.getParcelableArrayList(Bundle.java:805)
at com.whatsapp.ContactPicker.b(ContactPicker.java:93)
at com.whatsapp.ContactPicker.onCreate(ContactPicker.java:551)
at android.app.Activity.performCreate(Activity.java:6500)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1120)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3072)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3218)
at android.app.ActivityThread.access$1000(ActivityThread.java:198)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1676)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6837)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

Users with the same issue

Once, 1 year ago
Once, 1 year ago
2 times, 1 year ago
Once, 1 year ago
12 times, 2 months ago

Write tip

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