因为analyzer >=2.0.0依赖meta ^1.7.0 ...(因为myP同时依赖flutter_test any from sdk和analyzer 2.0.0,版本解析失败)
Because analyzer >=2.0.0 depends on meta ^1.7.0 ... (because myP depends on both flutter_test any from sdk and analyzer 2.0.0, version solving failed)
除了进入开发频道(或使用分析器 <2.0.0)之外,还有其他方法可以解决此问题吗?我曾经在开发通道上做过一次糟糕、耗时的体验,这就是为什么我更愿意坚持使用稳定版。我需要 2.0.0 来修复另一个包的错误。
Because analyzer >=2.0.0 depends on meta ^1.7.0 and every version of
flutter_test from sdk depends on meta 1.3.0, analyzer >=2.0.0 is
incompatible with flutter_test from sdk. So, because denkschule
depends on both flutter_test any from sdk and analyzer 2.0.0, version
solving failed. pub get failed (1; So, because myP depends on both
flutter_test any from sdk and analyzer 2.0.0, version solving failed.)
在这种情况下,由于 package:meta
的 1.7.0 版可能向后兼容 1.3.0 版,我认为将 dependency override 添加到您的 [=12] 是安全的=] 强制使用较新版本的文件:
dependency_overrides:
meta: ^1.7.0
(package:meta
特别应该是安全的,因为该包只提供用于静态分析的注释,不应影响运行时行为。)
除了进入开发频道(或使用分析器 <2.0.0)之外,还有其他方法可以解决此问题吗?我曾经在开发通道上做过一次糟糕、耗时的体验,这就是为什么我更愿意坚持使用稳定版。我需要 2.0.0 来修复另一个包的错误。
Because analyzer >=2.0.0 depends on meta ^1.7.0 and every version of flutter_test from sdk depends on meta 1.3.0, analyzer >=2.0.0 is incompatible with flutter_test from sdk. So, because denkschule depends on both flutter_test any from sdk and analyzer 2.0.0, version solving failed. pub get failed (1; So, because myP depends on both flutter_test any from sdk and analyzer 2.0.0, version solving failed.)
在这种情况下,由于 package:meta
的 1.7.0 版可能向后兼容 1.3.0 版,我认为将 dependency override 添加到您的 [=12] 是安全的=] 强制使用较新版本的文件:
dependency_overrides:
meta: ^1.7.0
(package:meta
特别应该是安全的,因为该包只提供用于静态分析的注释,不应影响运行时行为。)