我正在学习和练习扑翼的基础知识,我得到了这个问题。
代码:
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2+
english_words: ^3.1.0执行命令--no-color packages get后出现错误
Error on line 21, column 20 of pubspec.yaml: Invalid version constraint: Cannot include other constraints with "^" constraint in "^0.1.2+".
cupertino_icons: ^0.1.2+
^^^^^^^
pub get failed (65)开发平台:运行在Mac OS Mojave上的Android Studio 3.4
发布于 2019-04-20 18:30:32
当前稳定的cupertino_icons版本是0.1.2
cupertino_icons: ^0.1.2插入符号(^)用于Dart中的发布依赖项,以指示允许的版本号范围。具体地说,从指定版本到(但不包括)下一个非中断版本的任何版本都可以。
Remove +符号在2之后
加号之前是版本名,后面是版本码,你没有指定任何版本码,所以删除+。
发布于 2020-07-05 00:42:01
我在网络搜索后来到这里,我犯的错误是在后面加了一个逗号
改变这一点
flutter_audio_recorder: ^0.5.5,至
flutter_audio_recorder: ^0.5.5https://stackoverflow.com/questions/55772290
复制相似问题