2
respostas

Erro Build

Boa noite pessoal, ao finalizar o game apresentou esses 4 erros:

UnauthorizedAccessException: Access to the path "Library/BuildPlayerData\Editor" is denied. System.IO.Directory.Delete (System.String path) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.IO.Directory.RecursiveDelete (System.String path) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.IO.Directory.Delete (System.String path, System.Boolean recursive) (at <695d1cc93cca45069c528c15c9fdd749>:0) UnityEditor.VisualStudioIntegration.DirectoryIOProvider.Delete (System.String path, System.Boolean recursive) (at <55729f52d042492e9efc384182ae2feb>:0) UnityEditor.Build.Player.BuildPlayerDataGenerator.CreateCleanFolder (System.Boolean isEditor) (at <55729f52d042492e9efc384182ae2feb>:0) UnityEditor.Build.Player.BuildPlayerDataGenerator.GenerateForAssemblies (System.String[] assemblies, System.String[] searchPaths, UnityEditor.BuildTarget buildTarget, System.Boolean isEditor) (at <55729f52d042492e9efc384182ae2feb>:0) UnityEditor.Build.Player.BuildPlayerDataGeneratorNativeInterface.GenerateForAssemblies (System.String[] assemblies, System.String[] searchPaths, UnityEditor.BuildTarget buildTarget, System.Boolean isEditor) (at <55729f52d042492e9efc384182ae2feb>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Error building player because script class layout might be incompatible between the editor and the player.

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

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

Alguma sugestão do que pode ser? valeu

2 respostas

Para adiantar vou deixar o link do Google Drive com os arquivos do projeto caso queira ver.

https://drive.google.com/drive/folders/13hey2GvS_6Bxlm9v09XvlwO0HJ0HUULu?usp=sharing

Oi, Ramon, parece um erro de permissão.

Normalmente isso é o antivirus bloqueando a Unity, já tentou desativar ele? ou abrir a Unity com permissão de administrador?