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