cocos2dxjs 安卓游戏触摸没响应的问题

cocos2djs3.6 自己写个2048游戏
在用浏览器调试时一切正常:截图如下。
代码如下:
cc.eventManager.addListener({
event: cc.EventListener.TOUCH_ONE_BY_ONE,
swallowTouches: false,
onTouchBegan: this.onTouchBegan.bind(this),
onTouchMoved: this.onTouchMoved.bind(this),
onTouchEnded: this.onTouchEnded.bind(this)
}, this);
onTouchBegan:function(touch, event){
if(this.gamelayer.isOver){
return false;
}
this.beginPos.x = touch._point.x;
this.beginPos.y = touch._point.y;
this.testLabel.setString(touch._point.x);
return true;
},
onTouchMoved:function(touch, event){
this.testLabel.setString(touch._point.x);
return true;
},
onTouchEnded:function(touch, event){

}

但是生产安卓包在手机运行的时候,怎么触摸都没有反应了,除了上面的那个new game 按钮还能用之外,上面代码添加的事件就失效了
不知道有没有人也遇到这种情况,希望有人能帮忙解答:3:

:8:文章内容少于10个字

你先看看跑android时有没有log日志报错的内容;
然后在touchBegan中打印log看看能不能进触摸事件;
最后你在TouchMoved的事件中有一个返回值,TouchMoved是不需要的

有log日志的内容,在this.testLabel.setString(touch._point.x);
在左上角那一串数字就是响应touchbegin时会变化的
在android中它不会发生变化,是touchbegin从来没有调用过

请问如何查看android的报错log日志?

this.beginPos.x = touch._point.x;
this.beginPos.y = touch._point.y;
this.testLabel.setString(touch._point.x);
问题在这里
在cocos2d-html中可以直接获得touch的内部变量,没有私有变量之分
但是原生平台如android,windows上无法直接获取这些私有变量,应该用getLocation来代替
this.beginPos.x = touch.getLocation().x;
this.beginPos.y = touch.getLocation().y;
this.testLabel.setString(touch.getLocation().x);

touch._point undefined在手机上会这样,电脑上不会。好坑