Open aynerd opened 4 years ago
Same on my end too @iampawan
I had the same problem. You can solve it removing the library "cached_network_image: ^1.1.1", remove this library from "pubspec.yaml" and all references in the code (imports and "backgroundImage") and it'll build and run... without images but run...
regards
cached_network_image: ^2.0.0-rc change it pubspec.yml and rebuild.
We can close this issue, as the above fix worked for me and it will defintely work for all.
Hi, i got this error while trying to run the devfest app project. I did as instructed by commenting some lines in the gradle file and yet i got this error. what could have been the problem?
Compiler message: /C:/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-1.1.1/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) { ^ /C:/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 build failed.
FAILURE: Build failed with an exception.
Where: Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
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
BUILD FAILED in 1m 11s Gradle task assembleDebug failed with exit code 1 Exited (sigterm)