【问题标题】:MissingPluginException in the Huawei Site kit in flutterFlutter中华为站点套件中的MissingPluginException
【发布时间】:2021-01-07 13:10:45
【问题描述】:

尝试在 Flutter 中集成 Huawei Site kit 但出现以下错误。

4508-4583/com.learn.flashscreen E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation for textSearch on channel com.huawei.hms .flutter.site/方法)

【问题讨论】:

  • 彻底杀死您的应用程序并从头开始重新安装。通常添加新插件和热重载都会出现这个问题。
  • com.huawei.hms.flutter.site/method频道找不到textSearch方法的实现 插件版本或插件安装不正确。请先检查这两个部分:)

标签: android huawei-mobile-services


【解决方案1】:
  1. 请将Flutter Site Plugin 更新到最新版本。

  2. 可以使用以下任何一种方式来集成包。请根据文档here检查您的集成步骤。

  • 从路径中包含 Flutter 目录的控制台窗口运行以下命令。
[project_path]> flutter pub get
  • 点击编辑器中的相应按钮。

在 Android Studio 或 IntelliJ 中,单击 pubspec.yaml 文件顶部操作功能区中的 Packages get

在 VS Code 中,单击 pubspec.yaml 文件顶部操作功能区右侧的 Get Packages

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-08-22
    • 1970-01-01
    • 2017-11-05
    • 2018-12-01
    • 1970-01-01
    • 2020-11-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多