Skip to content
This repository has been archived by the owner on Jun 22, 2019. It is now read-only.

Unsupported value: kotlin.Unit #6

Open
ened opened this issue Mar 4, 2019 · 3 comments
Open

Unsupported value: kotlin.Unit #6

ened opened this issue Mar 4, 2019 · 3 comments

Comments

@ened
Copy link
Contributor

ened commented Mar 4, 2019

When recording starts with a invalid path, perhaps.

In any case the "unsupported Value" error should not happen.

java.lang.IllegalArgumentException: Unsupported value: kotlin.Unit
	at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:289)
	at io.flutter.plugin.common.StandardMethodCodec.encodeErrorEnvelope(StandardMethodCodec.java:70)
	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:209)
	at att.moe.flutterrecord.FlutterRecordPlugin.startRecorder(FlutterRecordPlugin.kt:132)
	at att.moe.flutterrecord.FlutterRecordPlugin.onMethodCall(FlutterRecordPlugin.kt:56)
	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:201)
	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:88)
	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:202)
	at android.os.MessageQueue.nativePollOnce(Native Method)
	at android.os.MessageQueue.next(MessageQueue.java:326)
	at android.os.Looper.loop(Looper.java:160)
	at android.app.ActivityThread.main(ActivityThread.java:6718)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

@rurico
Copy link
Owner

rurico commented Mar 4, 2019

I will fix it in the next version.

@089apps
Copy link

089apps commented Mar 21, 2019

me too, any idea why this happens?
Last thing was, I updated my IDE Kotlin Plugin to 1.3.21 (was 1.2.71 before)

@ened
Copy link
Contributor Author

ened commented Mar 21, 2019

No, but have since then moved to a different pub, called “flutter_sound”.

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

No branches or pull requests

3 participants