iampawan / GDG-DevFest-App

An App Template For GDG DevFest
Other
639 stars 271 forks source link

FAILURE: Build failed with an exception. #13

Open aynerd opened 4 years ago

aynerd commented 4 years ago

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.

BUILD FAILED in 1m 11s Gradle task assembleDebug failed with exit code 1 Exited (sigterm)

Ramneek-kalra commented 4 years ago

Same on my end too @iampawan

ggsosa commented 4 years ago

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

6vedant commented 3 years ago

cached_network_image: ^2.0.0-rc change it pubspec.yml and rebuild.

6vedant commented 3 years ago

We can close this issue, as the above fix worked for me and it will defintely work for all.