Unable to create apk in Cocos2djs under Linux

hi!
I have setted up the cocos2djs in ubuntu.and everything is working fine .I have produced a new test project.
I create web release by using
cocos compile -p web -m release and everything is working fine but when I try to create its apk it compiles but at the end it shows error an compilatio stops.
Here is the error screenshot

Pls help.
when i check the file mentioned in the error the file showed

/home/iamvoid13/Downloads/cocos2d-js-v3.1/tools/cocos2d-console/bin/…/plugins/plugin_jscompile/bin/jsbcc: 1: /home/iamvoid13/Downloads/cocos2d-js-v3.1/tools/cocos2d-console/bin/…/plugins/plugin_jscompile/bin/jsbcc: Syntax error: “&” unexpected