Can't create handler inside thread that has not called Looper.prepare()
来源:互联网 发布:美丽说软件下载 编辑:程序博客网 时间:2024/05/24 15:38
今天在接入华为渠道SDK的时候,出现了调用不起来支付的情况,日志里报错Can't create handler inside thread that has not called Looper.prepare()
然后发现在sdk的初始化中可以调起支付,
搜索一波之后才知道,这个问题我猜测是因为lua 调用java之后是跑在了cocos的UI线程上,然后java的代码是跑了GL的线程上导致的
所以在支付的函数体内第一行增加了Looper.prepare();,最后一行增加了Looper.loop();,然后就正常调起了,我的解释可能不对,但是解决是对了,毕竟我不是很会java
阅读全文
0 0
- 解决Can't create handler inside thread that has not called Looper.prepare() inside AsyncTask
- Handler——Can't create handler inside thread that has not called Looper.prepare()
- Handler机制和Can't create handler inside thread that has not called Looper.prepare()异常
- Can't create handler inside thread that has not called Looper.prepare()错误的解决
- Can't create handler inside thread that has not called Looper.prepare() 异常
- Can't create handler inside thread that has not called Looper.prepare()
- Can’t create handler inside thread that has not called Looper.prepare()
- Can’t create handler inside thread that has not called Looper.prepare()
- Can't create handler inside thread that has not called Looper.prepare()解决办法
- Can't create handler inside thread that has not called Looper.prepare() 终极解决方法
- 异常Can't create handler inside thread that has not called Looper.prepare() 解决方法
- Can't create handler inside thread that has not called Looper.prepare()错误的解决
- Can't create handler inside thread that has not called Looper.prepare() 终极解决方法
- Can't create handler inside thread that has not called Looper.prepare()
- Can't create handler inside thread that has not called Looper.prepare()的终极解决方法
- Can't create handler inside thread that has not called Looper.prepare()错误-安卓编程
- Can’t create handler inside thread that has not called Looper.prepare()
- Can't create handler inside thread that has not called Looper.prepare()解决办法
- php月、周、日始末时间的获取方法
- HttpClient容易忽视的细节——连接关闭
- js基本知识点总结-----js window对象
- OkHttp的封装(参数全部使用Json提交)
- APP自动更新功能
- Can't create handler inside thread that has not called Looper.prepare()
- 可视化分析库 matplotlib 基础01
- logstash的安装使用、收集json日志、csv日志总结
- 啥是B2B2C多用户商城
- eclipse从svn中导出web项目时不能添加到jboss中原因分析
- 努力不如热爱
- SPOJ Longest Common Substring II 后缀自动机(打印)
- 二人三人跑得快棋牌源码下载
- 双“十一”随感