In a Flutter application on Android Studio an error message is displayed when modifying something in the build.Radle

Asked

Viewed 182 times

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

1 answer

0

I don’t know what happened, but in the latest versions of Flutter this was fixed, so I just modified what I wanted in the "Gradle" files, ignored the bugs and restarted the IDE, so the app compiled. When I tried to compile the App without restarting the IDE, this error occurred.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.