Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 给定podspec`fluthoast`的名称不';与预期的“扑动”不匹配_Flutter_Dart_Flutter Dependencies_Flutter Packages - Fatal编程技术网

Flutter 给定podspec`fluthoast`的名称不';与预期的“扑动”不匹配

Flutter 给定podspec`fluthoast`的名称不';与预期的“扑动”不匹配,flutter,dart,flutter-dependencies,flutter-packages,Flutter,Dart,Flutter Dependencies,Flutter Packages,我在我的颤振项目中导入了flattertoast包 我在.yaml文件中以及在我的项目中使用import'package:flattertoast/flattertoast.dart'添加了依赖项但当我在模拟器上运行代码时,这是输出: -> Fetching podspec for `fluttertoast` from `.symlinks/plugins/fluttertoast/ios` [!] The name of the given podspec `FlutterToa

我在我的颤振项目中导入了
flattertoast

我在
.yaml
文件中以及在我的项目中使用
import'package:flattertoast/flattertoast.dart'添加了依赖项但当我在模拟器上运行代码时,这是输出:

   -> Fetching podspec for `fluttertoast` from `.symlinks/plugins/fluttertoast/ios`
[!] The name of the given podspec `FlutterToast` doesn't match the expected one `fluttertoast`
我试图将名称从
flattertoast
更改为
flattertoast
以匹配名称,但没有成功

我还清理了工作区并删除了
.pub缓存
…我尝试了很多东西,但都没有效果


想法?

我也面临同样的问题。问题出在pubspec.yml中,我像这样添加了插件依赖项(没有任何版本号):

最新版本is(5.0.1)似乎导致了此问题。因此,将依赖项更改为以下,为我解决了这个问题:

fluttertoast: 4.0.1
fluttertoast: 4.0.1