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

PlatformException #10

Open
RawadZogheib opened this issue Oct 25, 2024 · 2 comments
Open

PlatformException #10

RawadZogheib opened this issue Oct 25, 2024 · 2 comments

Comments

@RawadZogheib
Copy link

On one of my android devices I'm getting an exception but the plug-in keep working correctly!

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Unsupported value: 'kotlin.Unit' of type 'class kotlin.Unit', null, java.lang.IllegalArgumentException: Unsupported value: 'kotlin.Unit' of type 'class kotlin.Unit'
E/flutter (23780): 	at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:297)
E/flutter (23780): 	at io.flutter.plugin.common.StandardMethodCodec.encodeSuccessEnvelope(StandardMethodCodec.java:61)
E/flutter (23780): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:272)
E/flutter (23780): 	at app.farmako.restart.RestartPlugin.onMethodCall(RestartPlugin.kt:27)
E/flutter (23780): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/flutter (23780): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/flutter (23780): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/flutter (23780): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
E/flutter (23780): 	at android.os.Handler.handleCallback(Handler.java:942)
E/flutter (23780): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/flutter (23780): 	at android.os.Looper.loopOnce(Looper.java:204)
E/flutter (23780): 	at android.os.Looper.loop(Looper.java:291)
E/flutter (23780): 	at android.app.ActivityThread.main(ActivityThread.java:8134)
E/flutter (23780): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter (23780): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588)
E/flutter (23780): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1019)
E/flutter (23780): )
E/flutter (23780): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
E/flutter (23780): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
E/flutter (23780): <asynchronous suspension>

PS: This exception wasen't before we use this plugin.

@alexmercerind
Copy link
Member

Hi!

This is same as #7. I will publish an update on pub.dev, little short on time.

@RawadZogheib
Copy link
Author

Okay thank you! waiting for the update!
Btw this plugin is amazing!!

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

2 participants