首页 > 解决方案 > 'Pub get' 并且无法构建颤振项目

问题描述

C:\Users\Anmol\Downloads\flutter_windows_2.5.3-stable\flutter\bin\flutter.bat --no-color pub get Running "flutter pub get" in eshop v2.1.0...
因为没有 tuple 的版本匹配 2.0 .0 并且没有元组匹配 >2.0.0 <3.0.0 的版本,元组 ^2.0.0 是被禁止的。所以,因为eshop依赖元组^2.0.0,版本解析失败。pub get failed (1; 所以,因为 eshop 依赖于元组 ^2.0.0,版本解析失败。) Process finished with exit code 1`

标签: flutterandroid-studio

解决方案


似乎问题出在您的pubspec.yaml. 执行以下操作:在您的 pubspec.yaml 中删除赋予元组的版本并使其看起来像这样:

dependencies:
  tuple: ^2.0.0

推荐阅读