Gradle build failed.See the console

when I compile the game for android, I get the following error:
CommandInvokationFailure: Gradle build failed. C:/Program Files/Java/jdk1.8.0_171\bin\java.exe -classpath “D:\unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.2.1.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx2048m” “assembleRelease”

I installed java se 8u192 and I can build my project