ImageView 更换图片plist 安卓上异常

ImageView 更换图片 loadTexture(“a.png”, TextureResType::PLIST)使用plist时,

在win32上可以获取缓存图片,但是移植到安卓上时,就找不到缓存图片。

100%必现吗?

是啊,一直提示如下错误:
asset is nullptr
Fatal signal 11 (SIGSEGV) at 0x0000002c (code=1), thread 1114 (Thread-56)

试试在执行你上边那句之前加载你的plist文件

单独加的这句也不行,
auto cache = SpriteFrameCache::getInstance();
cache->addSpriteFramesWithFile(“skill_all.plist”, “skill_all.png”);

检查大小写。

在vs上运行是可以的,在eclipse上就不行,拼写没有错。

cocos2d: fullPathForFilename: No file found at doctor_skill01.png. Possible missing file.

relative path = doctor_skill01.png

很纠结啊,难道就只能用单个的小图了么?

如果所有字符串什么的都没错的话。那你是个案。

自己尝试建个空的项目试试

我在eclipse清理下项目重新运行,又可以了。:9:

这个怎么解决啊?
cocos2d: fullPathForFilename: No file found at 微软雅黑. Possible missing file.
cocos2d: fullPathForFilename: No file found at Helvetica. Possible missing file.

没找到字体。