title: Unity 2020.3.xx Gradle build failed
body: <p>I've been working some android unity project but when i try to build i got some Errors
  Here is one;</p>
  <p>**Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details</p>
  <blockquote>
  <p>Configure project :launcher
  WARNING: The option setting 'android.enableR8=false' is deprecated.
  It will be removed in version 5.0 of the Android Gradle plugin.
  You will no longer be able to disable R8</p>
  </blockquote>
  <p>Build-tool 31.0.0 is missing DX at /Users/username/Library/Android/sdk/build-tools/31.0.0/dx</p>
  <p>UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&amp;) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)**</p>
  <p>Then this one;</p>
  <p>** Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
  Warning: Mapping new ns <a href="http://schemas.android.com/repository/android/common/02" rel="nofollow noreferrer">http://schemas.android.com/repository/android/common/02</a> to old ns <a href="http://schemas.android.com/repository/android/common/01" rel="nofollow noreferrer">http://schemas.android.com/repository/android/common/01</a>
  Warning: Mapping new ns <a href="http://schemas.android.com/repository/android/generic/02" rel="nofollow noreferrer">http://schemas.android.com/repository/android/generic/02</a> to old ns <a href="http://schemas.android.com/repository/android/generic/01" rel="nofollow noreferrer">http://schemas.android.com/repository/android/generic/01</a></p>
  <p>FAILURE: Build failed with an exception.</p>
  <ul>
  <li>What went wrong:
  Could not determine the dependencies of task ':launcher:compileReleaseJavaWithJavac'.</li>
  </ul>
  <blockquote>
  <p>Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.</p>
  </blockquote>
  <ul>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.</p>
  </li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p>
  </li>
  </ul>
  <p>BUILD FAILED in 16s
  ]
  stdout[
  Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details</p>
  <blockquote>
  <p>Configure project :launcher
  WARNING: The option setting 'android.enableR8=false' is deprecated.
  It will be removed in version 5.0 of the Android Gradle plugin.
  You will no longer be able to disable R8</p>
  </blockquote>
  <p>]
  exit code: 1
  UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
  UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
  UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
  UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action<code>1[T] progress, System.String error) (at &lt;caed2e60415e48d1850197a030a83f5f&gt;:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action</code>1[T] progress) (at :0)
  Rethrow as GradleInvokationException: Gradle build failed
  UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at :0)
  UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
  UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
  Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
  UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at :0)
  UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
  UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0)
  UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties&amp; outProperties) (at :0)
  UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:337)
  UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&amp;) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)</p>
  <p><a href="https://i.stack.imgur.com/lU6wX.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p><a href="https://i.stack.imgur.com/QTWR9.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p><a href="https://i.stack.imgur.com/DmglE.png" rel="nofollow noreferrer">enter image description here</a></p>