用mac命令行打包android不成功

  • Creator 版本: 2.4.11

  • 目标平台:Android

我的命令是:
/Applications/Cocos/Creator/2.4.11/CocosCreator.app/Contents/MacOS/CocosCreator --path test-auto-build --build “platform=android;debug=false”

然后构建日志就一直停留在这个界面了,也没有提示报错啥的,请问有知道什么原因吗?

(node:41452) Warning: Accessing non-existent property ‘padLevels’ of module exports inside circular dependency

(Use CocosCreator --trace-warnings ... to show where the warning was created)

===== Initializing Editor =====

arguments:

–path

test-auto-build

[41452] protocol editor-framework registered

[41452] protocol app registered

[41452] protocol theme registered

[41452] protocol packages registered

[41452] Load ~/.CocosCreator/settings.json

[41452] protocol uuid registerred

[41452] protocol db registerred

[41452] protocol thumbnail registerred

[41452] Initializing Asset Database

[41452] checking language setting…

[41452] Language: zh

[41452] protocol unpack registerred

[41452] protocol disable-commonjs registerred

Load profile failed: local://settings.json

Load profile failed: local://settings.json

Load profile failed: local://settings.json

[41452] connected!

[41452] Check project /Users/game7/Documents/v/test-auto-build

[41452] Initializing project /Users/game7/Documents/v/test-auto-build

[41452] adapters loaded

[41452] asset-db-debugger loaded

[41452] fb-audience-network loaded

[41452] fb-live-stream loaded

[41452] google-play-instant loaded

[41452] jsb-adapter loaded

[41452] package-manager loaded

[41452] runtime-adapters loaded

[41452] runtime-dev-tools loaded

[41452] ui-kit-preview-extra loaded

[41452] ui-kit-preview loaded

[41452] alipay-minigame loaded

[41452] assets loaded

[41452] baidugame-opendata loaded

[41452] baidugame loaded

[41452] builder loaded

[41452] bytedance-opendata loaded

[41452] bytedance loaded

[41452] channel-upload-tools loaded

[41452] cloud-function loaded

Cocos Service Version 0.6.9

[41452] cocos-services loaded

[41452] console loaded

[41452] curve-editor loaded

[41452] fb-instant-games loaded

[41452] game-window loaded

[41452] google-instant-games loaded

[41452] hierarchy loaded

[41452] huawei-agc loaded

[41452] huawei-runtime loaded

[41452] inspector loaded

[41452] cpk-publish loaded

[41452] keystore loaded

[41452] link-sure-runtime loaded

[41452] node-library loaded

[41452] open-recent-items loaded

[41452] oppo-runtime loaded

[41452] package-asset loaded

[41452] preferences loaded

[41452] project-importer loaded

[41452] project-settings loaded

[41452] qtt-runtime loaded

[41452] scene loaded

[41452] simulator-debugger loaded

[41452] sprite-editor loaded

[41452] store loaded

[41452] taobao-creativeapp loaded

[41452] timeline loaded

[41452] vivo-runtime loaded

[41452] wechatgame-opendata loaded

[41452] wechatgame loaded

[41452] xiaomi-runtime loaded

[41452] im-plugin loaded

[41452] Warning: The current ‘7456’ preview port is already occupied, the port is automatically incremented

(node:41452) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

[41452] Warning: The current ‘7457’ preview port is already occupied, the port is automatically incremented

[41452] Warning: The current ‘7458’ preview port is already occupied, the port is automatically incremented

[41452] preview server running at http://localhost:7459

2025-01-02 17:07:40.329 CocosCreator[41452:1529493] +[IMKClient subclass]: chose IMKClient_Legacy

2025-01-02 17:07:40.329 CocosCreator[41452:1529493] +[IMKInputSession subclass]: chose IMKInputSession_Legacy

[41452] Initializing Cocos2d

[41452] Initializing engine extends

build jsb-adapter: 1.141ms

Parse [/Users/game7/Documents/v/test-auto-build/temp/quick-scripts/src/qc_index.js]: walk 2 files.

Parse [/Users/game7/Documents/v/test-auto-build/temp/quick-scripts/src/qc_index.js]: 5.371ms

Generate QUICK_COMPILE_BUNDLE: 0.143ms

QuickCompiler compileFinished: 0.357ms

QuickCompiler rebuild finished: 8.908ms

Init project script: 22.438ms

[41452] Loading packages

[41452] Run Application

{ status: 419, msg: ‘Error Session Token Owner’ }

(node:41493) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

(Use CocosCreator Helper (Renderer) --trace-deprecation ... to show where the warning was created)

[41452] cloud-function unloaded

有结果了吗 我这也遇到了类似的问题。。
apple@appledebijibendiannao ~ % /Applications/Cocos/Creator/2.4.13/CocosCreator.app/Contents/MacOS/CocosCreator --project /Volumes/work/jenkinsDemo --build “platform=android”

(node:3127) Warning: Accessing non-existent property ‘padLevels’ of module exports inside circular dependency

(Use CocosCreator --trace-warnings ... to show where the warning was created)

===== Initializing Editor =====

arguments:

–project

/Volumes/work/jenkinsDemo

–build

platform=android

[3127] protocol editor-framework registered

[3127] protocol app registered

[3127] protocol theme registered

[3127] protocol packages registered

[3127] protocol unpack registerred

[3127] protocol disable-commonjs registerred

[3127] Load ~/.CocosCreator/settings.json

[3127] checking language setting…

[3127] Language: zh

[3127] Initializing Cocos Creator Dashboard

[3127] Loading packages

[3127] Run Application

(node:3127) UnhandledPromiseRejectionWarning: Error: write EPROTO 5467908184:error:1000042e:SSL routines:OPENSSL_internal:TLSV1_ALERT_PROTOCOL_VERSION:…/…/third_party/boringssl/src/ssl/tls_record.cc:594:SSL alert number 70

at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16)

(node:3127) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see Command-line API | Node.js v23.6.0 Documentation). (rejection id: 1)

(node:3127) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

[3127] connected!

2025-01-09 19:01:15.232 CocosCreator[3127:73537] +[IMKClient subclass]: chose IMKClient_Modern

2025-01-09 19:01:15.232 CocosCreator[3127:73537] +[IMKInputSession subclass]: chose IMKInputSession_Modern

Load profile failed: local://settings.json

(node:3153) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

(Use CocosCreator Helper (Renderer) --trace-deprecation ... to show where the warning was created)

没有,无能为力