【求助】Android Studio编译3.15.1报错

running command : cocos luacompile -s F:\cocos\my_c2d_lua_3.15.1\frameworks\runtime-src\proj.android-studio\app\build/intermediates/assets/release/src -d F:\cocos\my_c2d_lua_3.15.1\frameworks\runtime-src\proj.android-studio\app\build/intermediates/assets/release/src
Starting process 'command 'cocos.bat''. Working directory: F:\cocos\my_c2d_lua_3.15.1\frameworks\runtime-src\proj.android-studio\app Command: cocos.bat luacompile -s F:\cocos\my_c2d_lua_3.15.1\frameworks\runtime-src\proj.android-studio\app\build/intermediates/assets/release/src -d F:\cocos\my_c2d_lua_3.15.1\frameworks\runtime-src\proj.android-studio\app\build/intermediates/assets/release/src
Successfully started process 'command 'cocos.bat''
luajit bin path: F:\cocos\cocos2d-x-3.15.1\tools\cocos2d-console\plugins\plugin_luacompile\bin\32bit\luajit-win32.exe
通过 luacompile 命令对 lua 文件进行 XXTEA 加密以及编译为字节码的处理。
正在处理 lua 文件。
正在将 F:\cocos\my_c2d_lua_3.15.1\frameworks\runtime-src\proj.android-studio\app\build\intermediates\assets\release\src\app\MyApp.lua 编译为字节码...
系统找不到指定的路径。
执行命令出错,返回值:1。查看日志文件 C:\Users\ChenShao/.cocos\cocos.log
:my_c2d_lua_3.15.1:mergeReleaseAssets FAILED
:my_c2d_lua_3.15.1:mergeReleaseAssets (Thread[Daemon worker Thread 4,5,main]) completed. Took 0.801 secs.

FAILURE: Build failed with an exception.

* Where:
Build file 'F:\cocos\my_c2d_lua_3.15.1\frameworks\runtime-src\proj.android-studio\app\build.gradle' line: 134

* What went wrong:
Execution failed for task ':my_c2d_lua_3.15.1:mergeReleaseAssets'.
> Process 'command 'cocos.bat'' finished with non-zero exit value 14

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

请问你解决这个问题了么

Process ‘command ‘cocos.bat’’ finished with non-zero exit value 14
我遇到这个问题的原因是一个lua有语法错误,所以luacompile出错了。
你可以查找一下cocos.log。如果有错误,应该会写在里面。

1赞

请问这个问题有人解决吗?只有release会报错,debug没问题的。