Skip to content
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

FAILURE: Build failed with an exception. #13

Open
aynerd opened this issue Jan 10, 2020 · 4 comments
Open

FAILURE: Build failed with an exception. #13

aynerd opened this issue Jan 10, 2020 · 4 comments

Comments

@aynerd
Copy link

aynerd commented Jan 10, 2020

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'.

Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • 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)

@Ramneek-kalra
Copy link

Same on my end too @iampawan

@ggsosa
Copy link

ggsosa commented May 30, 2020

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
Copy link

6vedant commented Oct 29, 2020

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

@6vedant
Copy link

6vedant commented Oct 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants