creator 动态换龙骨闪退问题


creator 动态换龙骨闪退问题

Android错误:Channel is unrecoverably broken and will be disposed!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 这三句赋值空必须有,否则打安卓包运行会闪退
armatureDisPlay.dragonAtlasAsset = null;
armatureDisPlay.dragonAsset = null;
armatureDisPlay.armatureName = "";


var dbUrl_ske = 'ani/' + name + '_ske';
var dbUrl_tex = 'ani/' + name + '_tex';
cc.loader.loadRes(dbUrl_tex,dragonBones.DragonBonesAtlasAsset,function(err,atlasasset){
armatureDisPlay.dragonAtlasAsset = atlasasset;
cc.loader.loadRes(dbUrl_ske,dragonBones.DragonBonesAsset,function(err,asset){
armatureDisPlay.dragonAsset = asset;
armatureDisPlay.armatureName = armatureName || "Armature";

});
});