Improperly formatted define flag: EDIT _ flutter

1.5k views Asked by At

What is the issue below? Recently updated flutter, then got this error.


FAILURE: Build failed with an exception.

* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1035

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\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 9s
Exception: Gradle task assembleDebug failed with exit code 1
1

There are 1 answers

0
Isaac Akindipe On BEST ANSWER

You can also resolve this by shortening the path directory. Copy the project folder/file and paste in the desktop or any shorter directory. Re-import the project into Android Studio or your IDE and debug and overwrite the existing project. It worked for me. Thanks.