为了控制所有间接依赖项的版本,我将pubspec.lock的所有依赖项移到pubspec.yaml中。我比较了pubspec.yaml和pubspec.lock之间的差异,最后pubspec.yaml如下所示:description: A new flutter plugin project但是sky_engine是flutter的一个依赖项,在我转到pubspec.yaml之前,一切都正常工作。
为什么sky_engine在没有版本问题的
我想在pubspec.yaml中更改字体系列,但是当我运行pub get时会发生什么并不是我所期望的。我就是这么做的..。style: italic在运行pub get之后我得到了什么Error detected in pubspec.yaml╷ │ ^Please correct the pubspec.yaml file at C:\Users\Khomotjo\c
pubspec.yaml看起来像这样description: A new Flutter project.information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
由于任意线路的每个版本都依赖于permission_handler ^5.0.1+1,而发动机门依赖于permission_handler ^8.3.0,因此禁止使用任何线路。因此,由于电动门依赖于任何线路^24.0.0-dev.1,版本解决失败。发布失败(1;因此,因为电动门依赖于任何线路^24.0.0-dev.1,版本解决失败)。 flutter:
# Use with the C