var spineBoy = new sp.SkeletonAnimation(‘res/spineboy.json’,‘res/spineboy.atlas’,0.5); 但是总是出现 Constructor for the requested class is not available, please refer to the API reference.
project.json中导入扩展模块了嘛 spine需要扩展包支持
project.json的modules里加入"extensions"
如果你用的是cocos code ide的话,点一下“构建模拟器”,就是“调试配置”按钮后边的那个
模拟器构建完了jsb运行应该就正常了