auto dict = cocos2d::FileUtils::getInstance()->getValueMapFromFile(“tips.xml”);
auto tips = dict[text].asString();
auto tips_text = StringUtils::format(tips.c_str(), texts.c_str(), texts.c_str());; //texts.c_str()
第一张图是内容模板安卓的显示 第二章没有显示%s是在本地windows32位上的调试
在安卓真机调试的时候 一直出现 D/HostConnection: glGetError exceeded.这个没有报错
老哥,有解决方案吗,我升64位,在部分手机也出现这个问题了
我觉得问题出在c_str上, 将string复制到char *再传参试试.