Flutter和GCMTaskService

我有这样的问题:我需要从本地android GCMTaskService获取一些保存在SQLite DB中的信息。但是首先我想从GCMTaskService调用flutter方法。

我做到了:

    FlutterRunArguments arguments = new FlutterRunArguments();
    arguments.bundlePath = FlutterMain.findAppBundlePath(getapplicationContext());
    arguments.libraryPath = callback.callbacklibraryPath;
    arguments.entrypoint = “go”;
    nativeView.runFromBundle(arguments);

当我简单地运行我的应用程序时,它将运行main.dart中的方法go()。但是当我在发布模式下运行它时,会出现异常:

  

未处理的异常:NoSuchMethodError:没有顶级获取器“运行”   宣布。接收方:顶级尝试过的呼叫:go

     

#0 NoSuchMethodError._throwNew(dart:core-patch / errors_patch.dart:200)

有人可以在这种情况下为我提供帮助或提供其他建议吗?谢谢。

shanlinghai 回答:Flutter和GCMTaskService

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2950329.html

大家都在问