Flutter version Unknown

佐手、 提交于 2019-12-11 11:57:41

问题


Hi after installing flutter on our CI-Server I got the following message:

... [Setup Flutter Android] [✓] Flutter (Channel beta, v0.0.0-unknown, on Linux, locale en_US) ...

had some already the same issue?


回答1:


I also had this problem on CentOS. It turns out that the default git installed in CentOs is too out-of-dated.

Please try upgrading git to the latest version on CentOS by following this answer link and then run flutter doctor again




回答2:


I've encountered this problem on CentOS 7. This comment on github explains it.

It happens with git versions before v1.8.4 because of "git describe --first-parent" not being implemented in older versions. As for CentOS 7, newest git version that you can get using yum is unfortunately v1.8.3.1.

TL;DR use something like ius to get a newer git version.



来源:https://stackoverflow.com/questions/51183980/flutter-version-unknown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!