Android Studio -> IntelliJ: "gradle console" missing, gradle compiler background task output
Hi,
I'm currently evaluating IntelliJ Idea 14 ultimate in order to find out whether I can use it instead of Android Studio.
I've recently migrated from Eclipse to Android Studio which wasn't a very pleasant experience being totally new to gradle.
It would be great if I could use IntelliJ Idea ultimate instead of phpstorm, eclipse and android studio.
Now I've just migrated a project from Android Studio and this is where I need help.
I was successful in importing the whole project and it builds successfully, however I couldn't figure out how to get the gradle compiler's messages into the ide.
This is called "Gradle Console" in Android Studio and I was unable to find it or anything similar.
When you execute a task in Android Studio, you can watch the gradle build process in this "gradle console" window which is very useful to see infos, lint warnings et.c.
In IntelliJ Idea 14.1, this is just started as a "background task" and you don't see what's going on.
I bet I'm missing something in the settings, or is there any way to at least redirect stdout of the gradle process into the IDE?
Any help is greatly appreciated!
Thank you!
Please sign in to leave a comment.
This is not actually true, when you execute a gradle task in IDEA, you can watch the process output in "Run" window

However, during android project 'Make' process, there are own (in Android plugin) calls to Gradle to build the project using gradle tasks instead of internal IDEA compiler infrastructure.
And the output is not displayed to the user, fill free to create an issue at https://youtrack.jetbrains.com for the case.
Now, you can see the output in the idea.log file (https://intellij-support.jetbrains.com/entries/23352446-Locating-IDE-log-files)
Thank you very much for your reply Vladislav!
It works (of course) exactly as you described and I'm already relieved!
However, regarding the build process output, I'm still missing something and I very much hope this is possible with Idea as well.
Output isn't very verbose by default.
So in Android Studio (v1.1), in order to get more useful info, I added --info to the "Gradle-Android Compiler" command line options.
That way you get lots of useful output such as which resources are being skipped (unused), which files are being merged, but most importantly the dexguard/proguard output.
This only works when the option "Use in-process build" is checked, otherwise the output of those processes doesn't end up in the "Run" window.
And exactly this option I'm unable to locate in Idea.
Is there another way for achieving this?
Opening log files on a regular basis isn't very convenient.
I hate that Google is doing this.
I know way too little to grasp this in its entirety, but somehow it feels so damn stupid.
Why can't they just only concentrate on developing a strong plugin rather than castrating the IntelliJ CE, so everyone can use the same tools while still being able to make use of the complete product.
You can add --info to the script parameters field of the Gradle Run/Debug configuration, then execute this configuration:



Thanks Serge Baranov!
Adding it to the task itself vs in project's settings worked :)
So settings -> build -> "Gradle-Android Compiler" -> "command-line options" doesn't effect directly executed tasks at all.
Coming from Android Studio I really didn't expect that.
Great! Everything's solved.
Thanks for the extremely quick support!
It only works with gradle wrapper configured project. But if the project uses an external gradle, it doesn't show any logs at all.