• Bugs
  • Error reading skeleton JSON file for SkeletonData asset

  • Изменено
Related Discussions
...

Hello,

I'm running into an issue with reading the skeleton JSON file when building my game for Android. Building in the Editor and Windows works great, but I receive the error at the bottom using adb logcat when I build for Android. I've created multiple bare bones projects and continue to run into the same issues when deploying for Android. The symptom is that the character will not show up at all. Please let me know if you have any questions, concerns, or if you would like me to upload a project - Thank you!!!

I'm using the latest stable releases of the following software:
Unity version - 2021.3.5f1
Spine version - 4.1.01 ESS, launcher 4.1.05
Spine Unity runtime - 4.1

Error reading skeleton JSON file for SkeletonData asset: BouncyBotCharacterGroupedLayers_SkeletonData
E/Unity (24180): Error reading attachment: Abdomen, skin: default
E/Unity (24180): at Spine.SkeletonJson.ReadSkeletonData (System.IO.TextReader reader) [0x01056] in C:\Users\colin\Desktop\Testing\Assets\Spine\Runtime\spine-csharp\SkeletonJson.cs:322
E/Unity (24180): at Spine.Unity.SkeletonDataAsset.ReadSkeletonData (System.String text, Spine.AttachmentLoader attachmentLoader, System.Single scale) [0x00017] in C:\Users\colin\Desktop\Testing\Assets\Spine\Runtime\spine-unity\Asset Types\SkeletonDataAsset.cs:274
E/Unity (24180): at Spine.Unity.SkeletonDataAsset.GetSkeletonData (System.Boolean quiet) [0x000c4] in C:\Users\colin\Desktop\Testing\Assets\Spine\Runtime\spine-unity\Asset Types\SkeletonDataAsset.cs:173
E/Unity (24180): UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
E/Unity (24180): UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])

Sorry to hear you're having troubles! Since you didn't specify the exact spine-unity runtime version (name of the unitypackage, also listed in Assets/Spine/version.txt), I assume that you are using the latest spine-unity 4.1 runtime from the download page or from git, is that correct?

Lildoogie написал

Please let me know if you have any questions, concerns, or if you would like me to upload a project - Thank you!!!

It would be great if you could send us a minimal Unity project that still shows your error. You can send it as a zip package to contact@esotericsoftware.com, briefly mentioning this forum thread URL so that we know the context. Then we can have a look at what's going wrong.

In general we recommend using binary export (as skel.bytes) over json, as it loads faster and is a more compact format memory-wise.