-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
跑不了 #33
Comments
你的flutter sdk是多少 |
E:\kaifa\flutter\flutter\bin 这是flutter 的 |
版本号 @zufeng1987 |
你执行flutter --version |
flutter 是 1.7.4 |
PS E:\kaifa\yuanma\FlutterDouBan-master-new> flutter --version |
Flutter 1.5.4-hotfix.2 • channel stable • https://github.com/flutter/flutter.git |
这是我的: |
哦哦 就是要下个 1.5.4 对吧 |
你可以切换下flutter sdk版本 跑一下,还有pubspec.yaml的配置文件的版本号不要变化。 |
这个 我百度下 我初学 什么都不懂 .... |
@zufeng1987 一步步来,都是这么过来的。 |
嗯 谢谢啦 有什么微信群什么的吗 我想多点渠道学起来快点 |
@zufeng1987 我在这个群里:468010872,目前有897人了 |
好的 谢谢了 |
@zufeng1987 如果你还有看这个项目,更新代码即可解决这个问题。谢谢 |
我拉取了master-new最新代码,也是这个错误。 |
Compiler message: |
同样的问题Xcode's output:
Could not build the precompiled application for the device. |
我也遇到了这个问题了,然后把flutter版本升级到和作者一样的ImageStreamListener还是报错
|
可能是我不会操作
运行 flutter run 提示如下
Compiler message:
lib/widgets/image/cached_network_image.dart:197:38: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
oldImageStream?.removeListener(_handleImageChanged);
^
lib/widgets/image/cached_network_image.dart:198:32: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
_imageStream.addListener(_handleImageChanged);
^
lib/widgets/image/cached_network_image.dart:208:34: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
_imageStream?.removeListener(_handleImageChanged);
^
lib/widgets/image/cached_network_image.dart:463:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
informationCollector: (StringBuffer information) {
^
file:///E:/kaifa/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/palette_generator-0.1.1/lib/palette_generator.dart:188:29: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
stream.removeListener(imageListener);
^
file:///E:/kaifa/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/palette_generator-0.1.1/lib/palette_generator.dart:194:31: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
stream.removeListener(imageListener);
^
file:///E:/kaifa/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/palette_generator-0.1.1/lib/palette_generator.dart:201:24: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
stream.addListener(imageListener);
^
Compiler failed on E:\kaifa\yuanma\FlutterDouBan-master-new\lib/main.dart
FAILURE: Build failed with an exception.
Where:
Script 'E:\kaifa\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 691
What went wrong:
Execution failed for task ':app:compileflutterBuildDebugX86'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to
get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
The text was updated successfully, but these errors were encountered: