Flutter MethodChannel在发布后​​不起作用

时间:2019-10-10 03:59:41

标签: android kotlin flutter dart channel

我有一个问题,我的Flutter应用发布后无法正常工作。在调试模式下,它可以正常工作,而在发布模式下则没有任何错误。

▶ Error log
2019-10-09 12:19:35.506 29424-29424/? E/MethodChannel#app.native/updater: Failed to handle method call
    d.d
        at com.example.almoathen_app.g.a$a.a(Unknown Source:38)
        at com.example.almoathen_app.MainActivity$b.onMethodCall(Unknown Source:74)
        at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(Unknown Source:17)
        at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(Unknown Source:57)
        at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(Unknown Source:4)
        at android.os.MessageQueue.nativePollOnce(Native Method)
        at android.os.MessageQueue.next(MessageQueue.java:326)
        at android.os.Looper.loop(Looper.java:181)
        at android.app.ActivityThread.main(ActivityThread.java:6990)
        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:1445)

更多数据请参见此链接: https://github.com/flutter/flutter/issues/42320

0 个答案:

没有答案