我正在使用颤振作为学习练习来构建应用程序。当我从AndroidStudio中运行该应用程序时,总是会收到此警告
+----------------------------------------------------------------------------+
¦ WARNING: your installation of Flutter is 90 days old. ¦
¦ ¦
¦ To update to the latest version, run "flutter upgrade". ¦
+----------------------------------------------------------------------------+
运行Flutter升级并不能消除此警告。 flutter upgrade表示最新的beta是0.7.1,但我的项目始终使用0.5.1进行构建 从命令行运行没有此警告。仅在从AndroidStudio中运行时。
$ flutter channel
Flutter channels:
* beta
dev
master
$ flutter --version
Flutter 0.5.1 • channel beta • https://github.com/flutter/flutter.git
Framework • revision c7ea3ca377 (3 months ago) • 2018-05-29 21:07:33 +0200
Engine • revision 1ed25ca7b7
Tools • Dart 2.0.0-dev.58.0.flutter-f981f09760
$ flutter -v doctor
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.228], locale en-US)
• Flutter version 0.5.1 at C:\src\flutter
• Framework revision c7ea3ca377 (3 months ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
…
但是升级可以做到这一点:
$ flutter upgrade
Upgrading Flutter from C:\src\flutter...
From https://github.com/flutter/flutter
09fe34708..3c624f8b2 dev -> origin/dev
7f0f938de..7a07b28c9 master -> origin/master
* [new tag] v0.7.1 -> v0.7.1
我已经尝试解决此问题,甚至可以列出。我很迷糊。发生了什么事?
答案 0 :(得分:2)
截至2018年8月29日:
Flutter刚刚发布了0.6.0(Flutter beta 6)。之所以收到该警告,是因为Flutter已有90天没有发布任何稳定的更新了。
注意:升级后可能需要重新启动系统。