最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

flutter - CMake error when trying to run audioplayers - Stack Overflow

programmeradmin5浏览0评论

I used version 6.3.0 in my flutter project, but it just stopped working and produced this error:

CMake Error at flutter/ephemeral/.plugin_symlinks/audioplayers_windows/windows/CMakeLists.txt:29 (message):
  Failed to install nuget package
  Microsoft.Windows.ImplementationLibrary.1.0.210803.1


Error: Unable to generate build files

and the pubspec.yaml looks like

dependencies:
  flutter:
    sdk: flutter
  flutter_map_geojson: ^1.0.8

  cupertino_icons: ^1.0.6
  flutter_map: ^7.0.2
  latlong2: ^0.9.1
  http: ^1.2.1
  window_size:
    git:
      url: .git
      path: plugins/window_size
      ref: fd519be1e8398c6b6c2062c2447bac960a71bc02
  provider: ^6.0.0
  mqtt_client: ^10.2.1
  path_provider: ^2.1.3
  shared_preferences: ^2.2.3
  audioplayers: ^6.3.0

I tried the example code but it still give the same error.

I also tried installing win10 SDK (10.0.18362.0)

Do anyone know what this means and how to fix it?

I used version 6.3.0 in my flutter project, but it just stopped working and produced this error:

CMake Error at flutter/ephemeral/.plugin_symlinks/audioplayers_windows/windows/CMakeLists.txt:29 (message):
  Failed to install nuget package
  Microsoft.Windows.ImplementationLibrary.1.0.210803.1


Error: Unable to generate build files

and the pubspec.yaml looks like

dependencies:
  flutter:
    sdk: flutter
  flutter_map_geojson: ^1.0.8

  cupertino_icons: ^1.0.6
  flutter_map: ^7.0.2
  latlong2: ^0.9.1
  http: ^1.2.1
  window_size:
    git:
      url: https://github/google/flutter-desktop-embedding.git
      path: plugins/window_size
      ref: fd519be1e8398c6b6c2062c2447bac960a71bc02
  provider: ^6.0.0
  mqtt_client: ^10.2.1
  path_provider: ^2.1.3
  shared_preferences: ^2.2.3
  audioplayers: ^6.3.0

I tried the example code but it still give the same error.

I also tried installing win10 SDK (10.0.18362.0)

Do anyone know what this means and how to fix it?

Share Improve this question asked Mar 10 at 14:58 知識日常 Know Scratcher知識日常 Know Scratcher 461 silver badge8 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Thanks everyone for stopping by.

I figured it out, it's the firewall that blocked me from reaching to nuget, so I turned off the firewall then it work.

发布评论

评论列表(0)

  1. 暂无评论