- Home /
Gradle build fail Unity
I have read many documents and wacthed many videos but none of them work for me. I also changed my editor from 2021 to 2019.4f but still it doesn't work. The only think change is that i didn't have to reinstall jdk ,ndk , sdk and gradle. It shows following error:
1:
FAILURE: Build failed with an exception.
2:
CommandInvokationFailure: Gradle build failed. C:/Program Files/Unity/Hub/Editor/2019.4.36f1/Editor/Data/PlaybackEngines/AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2019.4.36f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
3:
Build completed with a result of 'Failed' in 55 seconds (54562 ms) UnityEngine.GUIUtility:ProcessEvent (int,intptr)
4:
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bf] in :0
5:
Configure project :launcher
Thanks for help!
Your answer
Follow this Question
Related Questions
Unity Android Build Dosn't Work On The Device But Works In The Editor. 0 Answers
Unity tries wrong Android "run device" 1 Answer
Gradle error Corrupts apk 0 Answers
Camera FOV is adjustable in editor but not in Android Phone build (Google VR 1.6 and Unity 5.6.1f1) 1 Answer
unity Android Build gives weird name to installed game 1 Answer