Dart 无效的版本约束:不能包含带有“的其他约束”^&引用;
我在学习和练习颤振的基础知识,我得到了这个问题 代码: 我在执行命令Dart 无效的版本约束:不能包含带有“的其他约束”^&引用;,dart,flutter,dart-pub,flutter-dependencies,Dart,Flutter,Dart Pub,Flutter Dependencies,我在学习和练习颤振的基础知识,我得到了这个问题 代码: 我在执行命令后出错--没有颜色包得到: 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
后出错--没有颜色包得到:
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目前稳定的cupertino_图标版本是0.1.2
cupertino_icons: ^0.1.2
插入符号(^)
用于Dart中的发布依赖项,以指示允许的版本号范围。具体来说,从指定版本到(但不包括)下一个非中断版本的任何版本都可以
删除2后的+符号
加号之前的所有内容都是版本名,加号之后的所有内容都是版本代码,您没有指定任何版本代码,所以请删除+。我在Web搜索之后来到这里,我犯的错误是添加了一个尾随逗号
改变了这个
flutter_audio_recorder: ^0.5.5,
到
flutter_audio_recorder: ^0.5.5,
flutter_audio_recorder: ^0.5.5