

UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errorsĪt UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) in :0Īt (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) in :0 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) Run with -scan to get full insights.ĬommandInvokationFailure: Gradle build failed.Ĭ:\Program Files\Unity\Hub\Editor\2020.3.21f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2020.3.21f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" "=-Xmx4096m" "assembleRelease"īuild completed with a result of 'Failed' in 60 seconds (59527 ms) Run with -info or -debug option to get more log output. Run with -stacktrace option to get the stack trace. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)` It will be removed in version 5.0 of the Android Gradle plugin. WARNING: The option setting 'android.enableR8=false' is deprecated. The console details are here: Configure project :launcher JDK, SDK, NDK and Gradle used are Unity's recommended ones (already tried to use other ones).

I'm trying to build my android app for a while and can't seem to find any solution for this problem:
