> Task :framework:externalNativeBuildRelease
Build cocos2dlua armeabi-v7a
ninja: no work to do.
> Task :framework:mergeReleaseAssets FAILED
running command : cocos luacompile -s /Users/ljw/WorkSpace/client/src -d /Users/ljw/WorkSpace/client/frameworks/runtime-src/proj.android/app/build/intermediates/merged_assets/release/out/src
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':framework:mergeReleaseAssets'.
> A problem occurred starting process 'command '/Users/ljw/WorkSpace/client/frameworks/runtime-src/proj.android/app/get_environment.sh''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
這個錯誤是因爲get_environment.sh沒有給與權限導致
cd到文件目錄下 chmod 777 get_environment.sh
然後重新運行打包命令即可