Mayandev / morec

🎥 A beautiful movie application build by flutter.
MIT License
1.52k stars 236 forks source link

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

Open imruxin opened 4 years ago

imruxin commented 4 years ago
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
wpc009 commented 4 years ago

来,Google所有关键字得到的第一条内容。 https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=2ahUKEwi727i1qIroAhX7zIsBHRmWAFYQFjAAegQIBhAB&url=https%3A%2F%2Fgithub.com%2Frenefloor%2Fflutter_cached_network_image%2Fissues%2F270&usg=AOvVaw04mPkiH072jRY2EVflPXNe