TravisCI - 错误:包 flute_music_player 需要 Flutter SDK 版本 ^0.1.2 但当前 SDK 为 0.0.0-未知

TravisCI - ERR : Package flute_music_player requires Flutter SDK version ^0.1.2 but the current SDK is 0.0.0-unknown

我是 travis 的新手,开始使用 flutter 进行研究。

我正在为我的音乐播放器应用程序使用 flute_music_player plugin

现在应用 working/building 在我的机器上本地运行良好,但我无法在 Travis 上构建它

这是我得到的

    $ ./flutter/bin/flutter test
    Running "flutter packages get" in tumultus...             
    Package flute_music_player requires Flutter SDK version ^0.1.2 but the current SDK is 0.0.0-unknown.
    ---- Log transcript ----
.
.
.
.
---- End log transcript ----
pub get failed (1)
The command "./flutter/bin/flutter test" exited with 1.
store build cache
nothing changed, not updating cache
Done. Your build exited with 1.

这是我的完整作业 link log.

我的 travis.yml 是:

os:
  - linux
sudo: false
addons:
  apt:
    # Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
    sources:
      - ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
    packages:
      - libstdc++6
      - fonts-droid
before_script:
  - git clone https://github.com/flutter/flutter.git -b alpha --depth 1
  - ./flutter/bin/flutter doctor
script:
  - ./flutter/bin/flutter test
cache:
  directories:
    - $HOME/.pub-cache

我的完整项目可以在 github here

上找到

实际上,我已经从 here 复制了大部分代码,并且我尝试 运行 他在 travis 上的项目,但在日志中出现了同样的错误。

有什么不足之处,请大家帮忙

感谢您提前提供任何帮助或建议。

好吧,问题出在插件版本上,实际上不是 Travis。