未为类“ Stream <t>”(rx-dart)定义方法“ retype”

时间:2018-06-20 12:43:17

标签: flutter

我有一个flutter项目,我将flutter升级到了最新版本。然后突然,应用程序停止构建并给出问题的错误。

我尝试过

flutter clean
flutter packages upgrade
flutter packages get
flutter doctor

Flutter医生显示没有错误

/Users/mac/Desktop/code/flutter/flutter/bin/flutter --no-color doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v0.5.6-pre.30, on Mac OS X 10.13.4 17E199, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
[✓] Android Studio (version 3.1)
[✓] Connected devices (1 available)

• No issues found!
Process finished with exit code 0

关于为什么不建项目的任何想法?

2 个答案:

答案 0 :(得分:3)

您需要将rxdart升级到与正在使用的Flutter版本中包含的Dart版本兼容的最新0.18.0版本。

答案 1 :(得分:0)

是的,更新到0.18.0

依赖关系: 扑: sdk:颤动 cupertino_icons:^ 1.0.0 rxdart:0.18.0