7

I'm using Android Studio. When I try to run my project I get the message:

Gradle: 
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':AsteroidRunnerMultiplayer:compileDebug'.
> Compilation failed; see the compiler error output for details.

It references compiler error output, but I can't seem to find that output anywhere. Where is it so I can figure out why my project fails to build?

hoss
  • 2,430
  • 1
  • 27
  • 42
Patrick Zurek
  • 121
  • 1
  • 2
  • 6

1 Answers1

2

One thing you can do is deactivate the external build. To do so click on "compiler settings icon" in the "Messages Make" panel that appears when you have an error. You can also open the compiler settings by going to File -> Settings -> Compiler.

enter image description here

Uncheck "Use External build"

enter image description here

And you will see the errors in the console

EDIT: After returning to "internal build" again you may get some errors, you can solve them this way: Android Studio: disabling "External build" to display error output create duplicate class errors

Community
  • 1
  • 1
Jorge Fuentes González
  • 11,568
  • 4
  • 44
  • 64