CommandInvokationFailure: Gradle build failed in unity

74 views Asked by At

When I'm going to build augmented reality based android application using unity game engine I'm getting the following error.

CommandInvokationFailure: Gradle build failed. 
C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleDebug"

I tried lots of solutions. But none of them are worked. Can someone help me to fix this error. Thanks in Advance.

0

There are 0 answers