无法在MacOS X中安装google_maps_flutter

时间:2018-08-29 11:16:11

标签: dart flutter

无法在MacOS X中安装google_maps_flutter,请评论该怎么做。

NLTK Downloader

在pubspec.yaml中添加依赖项

[nltk_data] Error loading popular: <urlopen error [WinError 10054] An
[nltk_data]     existing connection was forcibly closed by the remote
[nltk_data]     host>

更新软件包时,我收到以下错误消息。

    $ flutter --version
    Flutter 0.7.3-pre.26 • channel unknown • unknown source
    Framework • revision a9275d2154 (4 hours ago) • 2018-08-29 07:58:11 +0100
    Engine • revision f3ff83a5db
    Tools • Dart 2.1.0-dev.3.0.flutter-3e0631761c

1 个答案:

答案 0 :(得分:2)

已解决

在“ dev_dependencies”部分下添加依赖项,无法在“ dependencies”部分下添加依赖项。

  dev_dependencies:
      flutter_test:
        sdk: flutter
      google_maps_flutter:
        git: 
          url: git://github.com/gerryhigh/plugins
          path: packages/google_maps_flutter