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

Unsupported value: 'kotlin.Unit' of type 'class kotlin.Unit' #5

Closed
LennartMart opened this issue Jun 23, 2022 · 0 comments · Fixed by #7
Closed

Unsupported value: 'kotlin.Unit' of type 'class kotlin.Unit' #5

LennartMart opened this issue Jun 23, 2022 · 0 comments · Fixed by #7
Labels
bug Something isn't working

Comments

@LennartMart
Copy link

Hi there!

I get an error when launching my Flutter app (app still works). This error is also appears in the example app.

Call stack:

E/MethodChannel#pin_lock(10524): java.lang.IllegalArgumentException: Unsupported value: 'kotlin.Unit' of type 'class kotlin.Unit' E/MethodChannel#pin_lock(10524): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:297) E/MethodChannel#pin_lock(10524): at io.flutter.plugin.common.StandardMethodCodec.encodeSuccessEnvelope(StandardMethodCodec.java:63) E/MethodChannel#pin_lock(10524): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:267) E/MethodChannel#pin_lock(10524): at nl.dutchcodingcompany.pin_lock.PinLockPlugin.onMethodCall(PinLockPlugin.kt:35) E/MethodChannel#pin_lock(10524): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262) E/MethodChannel#pin_lock(10524): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295) E/MethodChannel#pin_lock(10524): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:319) E/MethodChannel#pin_lock(10524): at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12) E/MethodChannel#pin_lock(10524): at android.os.Handler.handleCallback(Handler.java:938) E/MethodChannel#pin_lock(10524): at android.os.Handler.dispatchMessage(Handler.java:99) E/MethodChannel#pin_lock(10524): at android.os.Looper.loopOnce(Looper.java:226) E/MethodChannel#pin_lock(10524): at android.os.Looper.loop(Looper.java:313) E/MethodChannel#pin_lock(10524): at android.app.ActivityThread.main(ActivityThread.java:8663)

@Guldem Guldem added the bug Something isn't working label Jun 24, 2022
carlosaparadam added a commit to erpya/pin_lock that referenced this issue Oct 26, 2022
@Guldem Guldem closed this as completed in #7 Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants