我创建了具有依赖性的新聚合物飞镖项目:
dependencies:
polymer: ^1.0.0-rc.2
web_components: ^0.12.0
polymer_elements: ^1.0.0-rc.1
browser: ^0.10.0
reflectable: ^0.3.1
dependency_overrides:
polymer_interop:
git:
ref: 0.2.0-rc1
url: https://github.com/dart-lang/polymer_interop.git
一切正常(我可以创建新的dom-module并使用聚合物元素)。但后来我尝试在现有项目中使用完全相同的依赖配置,当我运行pub get
时,我得到:
Package reflectable has no versions that match >=0.3.1 <0.4.0 derived from:
- fbnn depends on version ^0.3.1
- polymer 1.0.0-rc.2 depends on version ^0.3.1
- polymer_elements 1.0.0-rc.1 depends on version ^0.3.1
我也尝试pub cache repair
,但它没有帮助。什么想法可能是错的?