imonursahin
imonursahin

Reputation: 17

Flutter debug error, FAILURE: Build failed with an exception

Why am I getting the following error? All of a sudden it started giving this error.

FAILURE: Build failed with an exception.

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

BU�LD FAILED in 1m 6s Exception: Gradle task assembleDebug failed with exit code 1

Upvotes: 1

Views: 2243

Answers (1)

Shanmukha
Shanmukha

Reputation: 2584

Did you try deleting pubspec.lock file? If not, try it. Or try these steps

Go to pubspec.yaml file in android studio.
try doing “packages get”
and then build the project again.

or follow this answer https://stackoverflow.com/a/66406390/16094734

Upvotes: 1

Related Questions