Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

share file method error #21

Open
mini0555555 opened this issue Sep 30, 2023 · 0 comments
Open

share file method error #21

mini0555555 opened this issue Sep 30, 2023 · 0 comments

Comments

@mini0555555
Copy link

mini0555555 commented Sep 30, 2023

W/Bundle ( 8374): Key android.intent.extra.TEXT expected ArrayList but value was a java.lang.String. The default value was returned.
W/Bundle ( 8374): Attempt to cast generated internal exception:
W/Bundle ( 8374): java.lang.ClassCastException: java.lang.String cannot be cast to java.util.ArrayList
W/Bundle ( 8374): at android.os.BaseBundle.getCharSequenceArrayList(BaseBundle.java:1351)
W/Bundle ( 8374): at android.os.Bundle.getCharSequenceArrayList(Bundle.java:1145)
W/Bundle ( 8374): at android.content.Intent.getCharSequenceArrayListExtra(Intent.java:8383)
W/Bundle ( 8374): at android.content.Intent.migrateExtraStreamToClipData(Intent.java:11402)
W/Bundle ( 8374): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1721)
W/Bundle ( 8374): at android.app.ContextImpl.startActivity(ContextImpl.java:1055)
W/Bundle ( 8374): at android.app.ContextImpl.startActivity(ContextImpl.java:1013)
W/Bundle ( 8374): at android.content.ContextWrapper.startActivity(ContextWrapper.java:413)
W/Bundle ( 8374): at com.example.whatsapp_share.WhatsappShare.shareFile(WhatsappShare.java:218)
W/Bundle ( 8374): at com.example.whatsapp_share.WhatsappShare.onMethodCall(WhatsappShare.java:60)
W/Bundle ( 8374): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
W/Bundle ( 8374): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
W/Bundle ( 8374): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
W/Bundle ( 8374): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
W/Bundle ( 8374): at android.os.Handler.handleCallback(Handler.java:938)
W/Bundle ( 8374): at android.os.Handler.dispatchMessage(Handler.java:99)
W/Bundle ( 8374): at android.os.Looper.loop(Looper.java:264)
W/Bundle ( 8374): at android.app.ActivityThread.main(ActivityThread.java:8312)
W/Bundle ( 8374): at java.lang.reflect.Method.invoke(Native Method)
W/Bundle ( 8374): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
W/Bundle ( 8374): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

anyone have any solution then please give me the solution for this error

please solve this problem as soon as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant