【问题标题】:Flutter - Error -32601 received from application: Method not foundFlutter - 从应用程序收到错误 -32601:找不到方法
【发布时间】:2020-10-25 05:16:13
【问题描述】:

我的应用程序在模拟器上正常构建,但随后屏幕变为空白,我在终端上得到了这个:

“从应用程序收到错误 -32601:找不到方法”。

依赖关系已更新。

请帮忙!

【问题讨论】:

    标签: flutter dart visual-studio-code emulation


    【解决方案1】:

    确保添加:

    import 'package:timeago/timeago.dart' as tm;

    另外,在 main.dart 上的 'void main()' 中添加:

    WidgetsFlutterBinding.ensureInitialized();

    【讨论】:

      猜你喜欢
      • 2018-10-16
      • 1970-01-01
      • 2021-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-03
      • 2023-04-10
      相关资源
      最近更新 更多