Hello,
We're using cocos2d-x 3.12 combined with the latest Spine runtime.
Android Version 4.4.2 on a Nexus 7 (2012)
Now we're trying load a Skeleton using this code:
SkeletonAnimation *skeleton = SkeletonAnimation::createWithFile("DizznySniper.json", "DizznySniper.atlas");
This works fine on iOS but does not on Android. This is the Stacktrace on Android, recorded via Crashlytics:
0 libc.so 0x40113e38 strlen
1 libc.so 0x4011c5c5 strdup
2 libcocos2dcpp.so 0x6ed0bf9c spSkeletonJson_readSkeletonData
3 libcocos2dcpp.so 0x6ed0bef8 spSkeletonJson_readSkeletonDataFile
4 libcocos2dcpp.so 0x6ed007dc spine::SkeletonRenderer::initWithFile(std::string const&, std::string const&, float)
5 libcocos2dcpp.so 0x6ed003f4 spine::SkeletonRenderer::SkeletonRenderer(std::string const&, std::string const&, float)
We made sure that the files are present on Android with a log placed in _spUtil_readFile
length 2482 READ assets/common/DizznySniper.atlas
length 37340 READ assets/common/DizznySniper.json
Since it works on iOS, the file is present on Android and it worked fine on Android with the previous Spine Runtime, I believe there's an Android specific bug in the latest Spine Runtime.