I can’t build a project, unity can’t get access to some servers and it doesn’t matter if I use a proxy or not. I can’t log in to the server itself either, I get the error 403 access denied.
CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2021.1.16f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath “C:\Gradle\gradle-4.0.1\lib\gradle-launcher-4.0.1.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx4096m” “bundleRelease”
stderr[
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ‘:launcher’.
Could not resolve all files for configuration ‘:launcher:classpath’.
Could not resolve com.android.tools.build:gradle:4.0.1.
Required by:
project :launcher
Could not resolve com.android.tools.build:gradle:4.0.1.
Could not get resource ‘https://jcenter.bintray.com/com/android/tools/build/gradle/4.0.1/gradle-4.0.1.pom’.
Could not GET ‘https://jcenter.bintray.com/com/android/tools/build/gradle/4.0.1/gradle-4.0.1.pom’. Received status code 403 from server: Forbidden
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED in 9s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details
Parallel execution is an incubating feature.
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <25e82ad8f640476c8ff807f13e25668c>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Команда+WaitingForProcessToExit waitingForProcessToExit, System.String ErrorMsg) (at <25e82ad8f640476c8ff807f13e25668c>:0)
UnityEditor.Android.Команда.Run (System.Строковая команда, Система.Строковые арги, Система.String workingdir, UnityEditor.Android.Команда+WaitingForProcessToExit waitingForProcessToExit, System.String ErrorMsg) (at <25e82ad8f640476c8ff807f13e25668c>:0)
UnityEditor.Android.AndroidJavaTools.Рунджава (Система.Строковые арги, Система.Строка workingdir, System.Действие ’ 1[T] прогресс, Система.Строковая ошибка) (при <25e82ad8f640476c8ff807f13e25668c>:0)
UnityEditor.Android.ГрэдлеВраппер.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.Строка workingdir, System.Строковая задача, Система.Действие1[T] прогресс) (at <25e82ad8f640476c8ff807f13e25668c>:0) Rethrow as GradleInvokationException: Ошибка сборки Gradle UnityEditor.Android.ГрэдлеВраппер.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.Строка workingdir, System.Строковая задача, Система.Действие
1[T] прогресс) (at <25e82ad8f640476c8ff807f13e25668c>:0)
UnityEditor.Android.Постпроцессор.Задачи.BuildGradleProject.Execute (UnityEditor.Android.Постпроцессор.Контекст PostProcessorContext) (at <25e82ad8f640476c8ff807f13e25668c>:0)
UnityEditor.Android.Постпроцессор.ПостПроцессРаннер.RunAllTasks (UnityEditor.Android.Постпроцессор.Контекст PostProcessorContext) (at <25e82ad8f640476c8ff807f13e25668c>:0)
Retrow as BuildFailedException: Исключение типа ‘UnityEditor.Строить.BuildFailedException’ был выброшен.
UnityEditor.Android.ПостПроцессор.CancelPostProcess.AbortBuild (Система.Заголовок строки, Система.Строковое сообщение, Система.Исключение ex) (at <25e82ad8f640476c8ff807f13e25668c>:0)
UnityEditor.Android.ПостПроцессор.Постпроцессный раннер.RunAllTasks (UnityEditor.Android.ПостПроцессор.PostProcessorContext context) (at <25e82ad8f640476c8ff807f13e25668c>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.Цель buildTarget, Система.Строка stagingAreaData, System.Строка StagingArea, System.Струнный плейерпакет, Система.Строка InstallPath, System.Строка CompanyName, System.Строка ProductName, UnityEditor.Параметры BuildOptions, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Строить.Отчет.Отчет BuildReport) (at <25e82ad8f640476c8ff807f13e25668c>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Модули.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <25e82ad8f640476c8ff807f13e25668c>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup TargetGroup, UnityEditor.Цель buildTarget, Система.Строка InstallPath, System.Строка CompanyName, System.Строка ProductName, System.Int32 width, System.Int32 height, UnityEditor.Параметры BuildOptions, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Строить.Отчет.Отчет BuildReport) (at <7ca9a09aeae542ab86253a551b1c89a0>:0)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)