Hello, i am new to creating avatars. I recently started to make my own OC in to an avatar for myself (and maybe the public), but even though i have no errors or anything to autofix in the SDK, it always ends up with a “Failed to build avatar, check logs for more details” and i do NOT know how to fix stuff like this.
Here’s the log as an example:
Failed to build the Avatar, check logs for more details
UnityEngine.Logger:Log (UnityEngine.LogType,object,UnityEngine.Object)
(wrapper dynamic-method) UnityEngine.Debug:UnityEngine.Debug.LogError_Patch1 (object,UnityEngine.Object)
VRC.Core.Logger:LogError (string,string,UnityEngine.Object)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/d__152:MoveNext () (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:3309)
System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start<VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/d__152> (VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/d__152&)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder:BuildError (object,string)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/d__143:MoveNext () (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:2989)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Exception>:Start<VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/d__143> (VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/d__143&)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder:HandleBuildError (System.Exception)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/d__141:MoveNext () (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:2874)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()
I am also doing this for the quest version, so i don’t know why it does this for quest but not for Windows
Just as a tip for unity error messages, only the message matters, the stack trace that is many lines of spam about various code lines is useless. The trace would be useful if you got an error and then needed to edit the code.
The suggestion to check the log for more details, basically check the other messages. You’ve already read that particular one in the SDK screen.
Ohhhhh… oh great, now i have more errors. There is stuff like: There is no argument given that corresponds to the required formal parameter ‘safety’ of ‘NativeArray.ReadOnly.ReadOnly(void*, int, ref AtomicSafetyHandle)’ , Error building Player because scripts had compiler errors , and AssetBundle was not built. What do they mean? Sorry if i sound dumb but i am new to unity so that’s why i don’t get what this means.
Are you able to build VRChat’s example avatar on both Windows and mobile platforms in a new avatar project? This would help diagnose the source of the issue to either the avatar project or the Unity installation.
You may try reinstalling the Android Build Support module.
I suggest making sure VCC uses the right Unity path (typically C:\Program Files\Unity\Hub\Editor\2022.3.22f1\Editor\Unity.exe), creating a new avatar project from VCC/ALCOM, loading only VRChat SDK - Base and VRChat SDK - Avatars 3.10.3 from VCC/ALCOM, trying a multi-platform upload of the SDK test avatar, and if that works try 3.10.4 (latest). If that works, import assets from your other avatar project until stuff breaks or find your missing scripts.
Sorry that I could not conclude the exact cause for you. Good luck.