Gradle Build failed

hey everyone , my name is chetan ,everytime i try to make an apk. , i have this error -

"CommandInvokationFailure: Gradle build failed.
C:/Program Files (x86)/Java/jdk1.8.0_161\bin\java.exe -classpath “C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx1024m” “assembleRelease”
i dont know what is reason of this error
plz help me .

Hello @chetan312 ,

I had the same issue, Updating the Android Studio and SDK seems to fix this for me. I would recommend the same.

@pkmnreborn09 thanks for reply. can u plz tell me which sdk version should i use