Android Compiling js files to bytecode failed


#1

I have a problem with compiling js files to bytecode.

Building apk…
running: ‘"/Applications/Cocos/frameworks/cocos2d-x-3.9/tools/cocos2d-console/bin/cocos" jscompile -s “/Users/dkokorev/my/projects/orange/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/assets” -d “/Users/dkokorev/my/projects/orange/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/assets”’

Compiling js files to bytecode.
Compiling js (/Users/dkokorev/my/projects/orange/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/assets/main.js) to bytecode…
Compiling js (/Users/dkokorev/my/projects/orange/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/assets/script/ccui/jsb_ccui_create_apis.js) to bytecode…
Compiling js (/Users/dkokorev/my/projects/orange/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/assets/script/ccui/jsb_ccui_deprecated.js) to bytecode…
Compiling js (/Users/dkokorev/my/projects/orange/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/assets/script/ccui/jsb_ccui_property_apis.js) to bytecode…
Compiling js (/Users/dkokorev/my/projects/orange/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/assets/script/ccui/jsb_ccui_property_impls.js) to bytecode…
Compiling js (/Users/dkokorev/my/projects/orange/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/assets/script/ccui/jsb_cocos2d_ui.js) to bytecode…
Compiling js (/Users/dkokorev/my/projects/orange/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/assets/script/debugger/actors/breakpoint.js) to bytecode…
Compiling js (/Users/dkokorev/my/projects/orange/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/assets/script/debugger/actors/common.js) to bytecode…
Error running command, return code: 1.Check the log file at /Users/dkokorev/.cocos/cocos.log
Error running command, return code: 14.

.cocos/cocos.log

Input file: /Users/dkokorev/my/projects/orange/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/assets/script/debugger/actors/common.js
Compiling …
Error! SyntaxError: illegal character
Compiled /Users/dkokorev/my/projects/orange/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/assets/script/debugger/actors/common.js fails!


#2

I’ve same error, u had any ideals? @dmkoi


#3

I found that almost js files in folder “script/debugger” has syntax error problems. Any ideals to fix this big trouble?


#4

Can you share more about your toolchain and what you are executing to compile.


#5

I have deleted debugger folder :slight_smile: and project compiled with success


#6

Sorry, but I have switched to another laptop, and i have not cocos on it