Nirmala
Nirmala

Reputation: 11

How to solve this error Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' and 'C:\src\flutter\bin\flutter.bat'

I'm getting this error and I have tried some solutions but unable to resolved.

FAILURE: Build failed with an exception.

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

BUILD FAILED in 6m 35s Exception: Gradle task assembleDebug failed with exit code 1

Any suggestions are welcomed.

Upvotes: 0

Views: 1122

Answers (1)

Awais Rehman
Awais Rehman

Reputation: 674

Solution 1

Maybe this outdated but should help someone.

Yesterday I Just restarted my pc and got this issue. I tried to search for the solution to this problem but nothing works in my case .

Solution Just delete your flutter folder (Flutter Source) and then reinstall it. Your problem will solve.

Solution 2 I was able to get around this by running with null safety turned off. See this article for details.

dart --no-sound-null-safety run
flutter run --no-sound-null-safety

Upvotes: 1

Related Questions