Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

编译报错,是版本问题么? #15

Open
imruxin opened this issue Jan 28, 2020 · 1 comment
Open

编译报错,是版本问题么? #15

imruxin opened this issue Jan 28, 2020 · 1 comment

Comments

@imruxin
Copy link

imruxin commented Jan 28, 2020

Launching lib/main.dart on iPhone 11 in debug mode...

Compiler message:
/usr/local/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-1.1.3/lib/src
/cached_network_image_provider.dart:42:24: Error: The method
'CachedNetworkImageProvider.load' has fewer positional arguments than those of
overridden method 'ImageProvider.load'.
  ImageStreamCompleter load(CachedNetworkImageProvider key) {
                       ^
/usr/local/flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24:
Context: This is the overridden method ('load').
  ImageStreamCompleter load(T key, DecoderCallback decode);
                       ^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
Failed to build bundle.
Error launching application on iPhone 11.

这个是属于版本导致的问题么?

我的环境是:

Flutter 1.12.13+hotfix.7 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9f5ff2306b (35 小时前) • 2020-01-26 22:38:26 -0800
Engine • revision a67792536c
Tools • Dart 2.7.0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants