Gradle build failed Unity or Gradle build failed see the console for details , in this article i will explain how to fix this problem .
How to Fix Gradle build failed Unity
make sure setup Java Jdk 1.8.0_77 then Install SDK From Android Studio and Fix SDK Problems Then download NDK compatible with unity version then download recommended gradle version .
1 - Install Java JDK 1.8.0_77 and setup environment .
in article How to Install Java JDK 1.8.0_77 you will find steps to install java jdk 1.8.0_77 and setup environment (JAVA_HOME) .
2 - Install SDK And Fix SDK Problems .
in article How to Install SDK you will find steps to install sdk and fix sdk problems .