0
FAILURE: Build failed with an Exception.
This error occurs when I modify something in the build.Radle of the "app" folder of some Flutter application in Android Studio.
So, just clicking on the file, already appears the red underlined error in the file name and when I try to run the application appears the following message:
Launching lib\main.dart on SM J500M in debug mode...
Initializing gradle...
Resolving dependencies...
* Error running Gradle:
Starting a Gradle Daemon, 3 busy and 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\kleve\Desktop\Documentos\Flutter\chat_online\android\app\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating project ':app'.
> ASCII
* 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 35s
Command:
C:\Users\kleve\Desktop\Documentos\Flutter\chat_online\android\gradlew.bat app:properties
Finished with error: Please review your Gradle project setup in the android/ folder.
That’s what’s on line 24 of the build.Radle:
apply plugin: 'com.android.application'
I did a little research on the error you reported above, it should be something related to gradlle. Maybe this can help. https://github.com/flutter/flutter/issues/41492#issuecomment-536112970
– NerckJF