首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >TravisCI - ERR :包flute_music_player需要Flutter版本^0.1.2,但是当前的SDK是0.0.0-未知

TravisCI - ERR :包flute_music_player需要Flutter版本^0.1.2,但是当前的SDK是0.0.0-未知
EN

Stack Overflow用户
提问于 2018-04-10 18:01:20
回答 1查看 181关注 0票数 1

我是新来的特拉维斯,并开始了它的工作与颤栗。

我正在使用flute_music_player 插件作为我的音乐播放器应用程序。

现在,app在我的机器上在本地工作/建造得很好,但是我不能在Travis上构建它。

这是我得到的

代码语言:javascript
运行
复制
    $ ./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.

这是指向我的完整工作日志。的链接

我的travis.yml是:

代码语言:javascript
运行
复制
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 这里上找到

实际上,我已经从这里复制了大部分代码,我试图在travis上运行他的项目,但日志上也有相同的错误。

有没有我缺少的地方,请帮帮忙。

感谢事先提供的任何帮助或建议。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-04-24 16:52:17

好吧,问题在于插件版本,而不是真正的Travis。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49760238

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档