Flutter app not building due to gradle issue

Viewed 374

I am facing a problem while importing an already made flutter app in my android studio and IntelliJ IDE. Whenever I try to build any flutter app, it says:

FAILURE: Build failed with an exception.

* Where:
Script '/Users/krishnakc/Downloads/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1102

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command '/Users/krishnakc/Downloads/flutter/bin/flutter'' 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 46s
Running Gradle task 'assembleRelease'...                          217.7s
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1

But when I create any new flutter APK by wizard then it builds successfully.

What I did: Cleaning flutter, deleting flutter whole project, file, and reinstalling flutter properly. Reinstalling gradle and android studio. I tried all possible solutions for it and researched the internet so much and I cannot build app. Please help me regarding this. I am using macbook pro 10.15.7 Thank you

0 Answers
Related