ChaynikVcSHrp
@ChaynikVcSHrp
Создаю игры на C#

В чем причина ошибок во время компиляции игры на Unity под Android?

Версия Unity: 2021.2.0f1
Во время компиляции сцены 1 происходят эти ошибки:

clang: error: linker command failed with exit code 1 (use -v to see invocation)

����ࠡ�⠭��� �᪫�祭��: Burst.Compiler.IL.Aot.AotLinkerException: The native link step failed. Check previous exception in the log - linker command line : "C:\Users\s3470\OneDrive\����稩 �⮫\Unity game\2021.2.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe "@C:\Users\s3470\AppData\Local\Temp\tmpF70.tmp""

� Burst.Compiler.IL.Aot.AotNativeLinkBase.RunNativeLinkerTool(String command, String arguments, String errorMessage, String commandType, String workingDirectory, Boolean muteOutputs)

� Burst.Compiler.IL.Aot.AotNativeLinkAndroid.Link(TargetCpu targetCpu, List`1 inputFiles, String outputFile, Boolean enableDebugInfo)

� Burst.Compiler.IL.Aot.AotCompiler.Link(List`1 groups, String nameSuffix, AotCompilerOptions compilerOptions, TextWriter consoleOut, TextWriter consoleError)

� Burst.Bcl.BclApp.LibraryThread.Process(LibraryCompilationRequest libraryRequest)

� Burst.Bcl.BclApp.LibraryThread.Run()

� System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

� System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

� System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

� System.Threading.ThreadHelper.ThreadStart()

BuildFailedException: Burst compiler (1.6.0) failed running

stdout:
stderr:
C:\Users\s3470\OneDrive\������� ����\Unity game\2021.2.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: cannot open C:\Users\s3470\OneDrive\������� ����\Unity game\2021.2.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/lib/../lib/armv7-a/libatomic.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

����ࠡ�⠭��� �᪫�祭��: Burst.Compiler.IL.Aot.AotLinkerException: The native link step failed. Check previous exception in the log - linker command line : "C:\Users\s3470\OneDrive\����稩 �⮫\Unity game\2021.2.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe "@C:\Users\s3470\AppData\Local\Temp\tmpF70.tmp""
� Burst.Compiler.IL.Aot.AotNativeLinkBase.RunNativeLinkerTool(String command, String arguments, String errorMessage, String commandType, String workingDirectory, Boolean muteOutputs)
� Burst.Compiler.IL.Aot.AotNativeLinkAndroid.Link(TargetCpu targetCpu, List`1 inputFiles, String outputFile, Boolean enableDebugInfo)
� Burst.Compiler.IL.Aot.AotCompiler.Link(List`1 groups, String nameSuffix, AotCompilerOptions compilerOptions, TextWriter consoleOut, TextWriter consoleError)
� Burst.Bcl.BclApp.LibraryThread.Process(LibraryCompilationRequest libraryRequest)
� Burst.Bcl.BclApp.LibraryThread.Run()
� System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
� System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
� System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
� System.Threading.ThreadHelper.ThreadStart()

BuildFailedException: Burst compiler (1.6.0) failed running

Error building Player: 13 errors

Build completed with a result of 'Failed' in 15 seconds (14911 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

UnityEditor.BuildPlayerWindow+BuildMethodException: 16 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002d8] in <12f9706bdb064a6c8a1d1b6f565a0097>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <12f9706bdb064a6c8a1d1b6f565a0097>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Не понимаю в чём проблема. Создал 2 пустых проекта, попытался их тоже скомпилировать. Те же самые ошибки.
  • Вопрос задан
  • 666 просмотров
Решения вопроса 1
LittleBob
@LittleBob
Я с такими ошибками борюсь просто: попробуйте полностью снести юнити, поставить другую версию и снова попробовать закомпилить. Как то раз получилось избавиться от ошибок путём перемещения проекта в другую папку (фиг знает как это работает).
Попробуйте переставить инструменты андроид (jdk, sdk).
Да поможет вам Бог...
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
freeExec
@freeExec
Участник OpenStreetMap
Вот этих вот вопросиков в пути быть не должно C:\Users\s3470\OneDrive\������� ����\Unity
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы