Android Studio:How to find errors in code after compile

Is this the right place to ask questions about Android Studio? If not, please redirect me to the right place.

I have just started trying to use it, and I find the IDE very confusing.

When I compile my project, I get the output:
Information:Compilation completed with 2 errors and 0 warnings in 6 sec
Information:2 errors
Information:0 warnings
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':FreegleDroid:compileDebug'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error:Could not execute build using Gradle distribution ''.
Does this indicate errors in my code? If so, how do I find them?

Previously, when I got this message (is it supposed to be helpful in some way?), I could open each one of my source files, and one or more of them would have red spots in the scroll bar, clicking on which would show me the error in the code. (Is there an easier way to find the errors, without having to open each source file individually to see if there are red dots in it?)

However, this time none of the source files has a red dot.

I wonder if the difference this time is that I added a library to the project? The library is android-async-http-1.4.3.jar, and I added it by copying it into the lib folder (as per the instructions with the library), and then right-clicking on the library in the project structure, and clicking "Add as Library". Was this the wrong thing to do in some way?

Sorry for the newbie question, but I find the IDE a bit baffling.


Hi Nikki,

I'm afraid the answer lays at android gradle plugin, so, it's better to post it here -



Please sign in to leave a comment.