Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

使用cc.loader.load真机加载微信头像报错

$
0
0

@heyuanchao 写道:

JS代码如下:

       var self = this;
       cc.loader.load(headimgurl, function (err, texture) {
            if (err) {
                cc.log(err);
            }
            self.headimg.spriteFrame = new cc.SpriteFrame(texture);
        });

Creator版本v1.3.3,在Chrome运行,可以加载本地localhost的图片,在手机上加载微信头像报错:
01-06 11:40:57.861 18626-18660/com.youxibi.ddz2 D/CCFileUtils-android.cpp: asset is nullptr
01-06 11:40:57.883 18626-18660/com.youxibi.ddz2 D/cocos2d-x debug info: Error: Download text failed: http://wx.qlogo.cn/mmopen/Po9mkm3Z42tolYpxUVpY6mvCmqalibOpcJ2jG3Qza5qgtibO1NLFNUF7icwCibxPicbGmkoiciaqKEIdvvveIBfEQqal8vkiavHIeqFT/0

期望解决上述问题

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>