Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are Gradle detailed logs when building Flutter application in debug mode?

Tags:

gradle

flutter

I am debugging my Flutter application and sometimes I get Gradle build errors. That's fine, some configuration is incorrect.

However it is difficult to find the actual problem as the debug console is not displaying any details, such as which row is breaking the build.

There's no error trace.

Launching lib\main.dart on Android SDK built for x86 in debug mode...
* Error running Gradle:
ProcessException: Process "C:\Users\<USER>\Projects\<app>\android\gradlew.bat" exited abnormally:

  Command: C:\Users\<USER>\Projects\<APP>\android\gradlew.bat app:properties

Please review your Gradle project setup in the android/ folder.
Exited (sigterm)

Where, or how, can I see the Gradle logs when building a Flutter application in debug mode?

Here is a print too.

enter image description here

like image 696
Evandro Pomatti Avatar asked Sep 03 '19 22:09

Evandro Pomatti


1 Answers

You should edit your $HOME/.gradle/gradle.properties file by adding:

org.gradle.console=verbose

and run

flutter run -v

Here a piece of output in VSCode enter image description here

like image 106
LeoLopez Avatar answered Oct 14 '22 04:10

LeoLopez