如果需要较旧的SDK,如何测试最新的Polymer lib?

时间:2013-10-08 19:37:33

标签: dart dart-polymer

我想给最新的Dart Polymer lib一个旋转,所以我更新了pubspec文件并运行了一个pub安装。但是,安装失败,并显示以下消息:

  

Pub安装失败,[1]解决依赖关系.........

     

包聚合物需要SDK版本> = 0.8.1 + 1但当前的SDK是   0.7.6 + 4.r28108

是否有可能通过pubspec使用最新的Polymer版本,或者我是否需要自己从源代码构建SDK?

1 个答案:

答案 0 :(得分:1)

https://www.dartlang.org/tools/editor/指向前沿,连续构建DartEditor

https://storage.googleapis.com/dart-editor-archive-continuous/latest/darteditor-win32-32.zip
https://storage.googleapis.com/dart-editor-archive-continuous/latest/darteditor-win32-64.zip

截至今天,如果你转到Help > About Dart Editor,你应该可以升级0.8.1.2。

这些库在SDK之前的一两天更新似乎很常见,所以通常当我遇到这个问题时,我会在pubspec中添加如下内容,直到我可以更新SDK:

dependencies:
  polymer: "< 8.0.0"