-
Creator 版本:v2.0.8
-
目标平台: mac
-
详细报错信息,包含调用堆栈:
/Applications/CocosCreator.app/Contents/MacOS/CocosCreator --path /Users/haili/dafa/web-games --compile “platform=android;debug=false”
===== Initializing Editor =====
arguments:
–path
/Users/haili/dafa/web-games
–compile
platform=android;debug=false
[50416] Load ~/.CocosCreator/settings.json
[50416] Initializing Asset Database
[50416] checking language setting…
[50416] Language: zh
Item with id ‘help’ is not found
protocol “profile” registered
[50416] protocol editor-framework registered
[50416] protocol app registered
[50416] protocol theme registered
[50416] protocol packages registered
[50416] protocol uuid registerred
[50416] protocol db registerred
[50416] protocol thumbnail registerred
[50416] protocol unpack registerred
[50416] protocol disable-commonjs registerred
[50416] connected!
[50416] Check project /Users/haili/dafa/web-games
[50416] Initializing project /Users/haili/dafa/web-games
[50416] Initializing Cocos2d
[50416] Initializing engine extends
[50416] asset-db-debugger loaded
[50416] color-picker loaded
[50416] fb-audience-network loaded
[50416] fb-live-stream loaded
[50416] google-play-instant loaded
[50416] huawei-runtime loaded
[50416] jsb-adapter loaded
[50416] oppo-runtime loaded
[50416] package-manager loaded
[50416] qqplay-adapter loaded
[50416] runtime-dev-tools loaded
[50416] sdkbox loaded
[50416] tester loaded
[50416] ui-grid loaded
[50416] ui-kit-preview-extra loaded
[50416] ui-kit-preview loaded
[50416] ui-kit loaded
[50416] ui-tree loaded
[50416] vivo-runtime loaded
[50416] weapp-adapter loaded
[50416] assets loaded
[50416] builder loaded
ccServices init
Cocos Service Version 0.5.8
[50416] cocos-services loaded
[50416] console loaded
[50416] fb-instant-games loaded
[50416] google-instant-games loaded
[50416] hierarchy loaded
[50416] inspector loaded
[50416] keystore loaded
[50416] node-library loaded
[50416] package-asset loaded
[50416] preferences loaded
[50416] project-exporter loaded
[50416] project-importer loaded
[50416] project-settings loaded
[50416] scene loaded
[50416] simulator-debugger loaded
[50416] sprite-editor loaded
[50416] store loaded
[50416] timeline loaded
2019-03-11 16:58:36.516 CocosCreator[50416:5880490] *** WARNING: Textured window <AtomNSWindow: 0x7f84fced0d50> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow’s -titlebarAppearsTransparent=YES instead.
build jsb-adapter: 3.845ms
init QuickCompiler: 2045.346ms
[50416] Start compiling with options : {
“android-instant”: {
“REMOTE_SERVER_ROOT”: “”,
“host”: “”,
“pathPattern”: “”,
“recordPath”: “”,
“scheme”: “https”,
“skipRecord”: false
},
“encryptJs”: true,
“excludeScenes”: [
“210dda98-d1e2-42ba-bf4a-c6b7844e1ef4”,
“6ad2e065-ac34-45ec-8ba9-b1c0dec43f2e”,
“45128af8-2af7-4137-92cd-f1a57be66b96”,
“73a5f71d-ef53-448d-b041-e4d4994f55d7”,
“b612af66-3514-482f-a7d9-029fcbcd82a5”,
“71393993-4919-4aa3-baf6-4f67752e42ed”,
“f2b60503-3d01-4c27-8f1b-604c479a7aa4”,
“5f189375-30cd-4908-90fa-e35d6526bf28”
],
“fb-instant-games”: {},
“includeSDKBox”: false,
“inlineSpriteFrames”: false,
“inlineSpriteFrames_native”: false,
“md5Cache”: false,
“mergeStartScene”: false,
“optimizeHotUpdate”: false,
“orientation”: {
“landscapeLeft”: true,
“landscapeRight”: true,
“portrait”: false,
“upsideDown”: false
},
“packageName”: “org.cocos2d.dafawebgames”,
“qqplay”: {
“REMOTE_SERVER_ROOT”: “”,
“orientation”: “portrait”,
“zip”: false
},
“startScene”: “9fed271e-0b0e-40c3-a5fd-e23a09a41b4c”,
“title”: “web-games”,
“webOrientation”: “auto”,
“wechatgame”: {
“REMOTE_SERVER_ROOT”: “”,
“appid”: “wx6ac3f5090a6b99c5”,
“orientation”: “portrait”,
“subContext”: “”
},
“xxteaKey”: “04490223-f93a-41”,
“zipCompressJs”: true,
“actualPlatform”: “android”,
“apiLevel”: “android-22”,
“appABIs”: [
“armeabi-v7a”,
“arm64-v8a”,
“x86”
],
“buildPath”: “/Users/haili/dafa/web-games/build”,
“debug”: false,
“embedWebDebugger”: false,
“platform”: “android”,
“previewHeight”: “720”,
“previewWidth”: “1280”,
“sourceMaps”: false,
“template”: “link”,
“useDebugKeystore”: true,
“vsVersion”: “auto”,
“dest”: “/Users/haili/dafa/web-games/build/jsb-link”,
“excludedModules”: [],
“autoCompile”: false
}
[ init settings [ ] 0% 0.0s ]Cocos2dx root: /Applications/CocosCreator.app/Contents/Resources/cocos2d-x
native environment string : COCOS_FRAMEWORKS=/Applications/CocosCreator.app/Contents/Resources/;COCOS_X_ROOT=/Applications/CocosCreator.app/Contents/Resources/cocos2d-x;COCOS_CONSOLE_ROOT=/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/tools/cocos2d-console/bin;NDK_ROOT=/Users/haili/Library/Android/android-ndk-r16b/;ANDROID_SDK_ROOT=/Users/haili/Library/Android/sdk/
[50416] Checked Python Version [2.7.10]
Cocos2dx root: /Applications/CocosCreator.app/Contents/Resources/cocos2d-x
[50416] Cocos Services load base data!
[ compile native [==== ] 10% 0.0s ][50416] Start to compile native project. Please wait…
[50416] The log file path [ /Users/haili/.CocosCreator/logs/native.log ]
Cocos2dx root: /Applications/CocosCreator.app/Contents/Resources/cocos2d-x
[ finish [========================================] 100% 0.0s ]
[50416] Compile native project successfully.
[ custom-compile-process [========================================] 99% 0.1s ]Builder: do custom process [compile-finished]
ReferenceError: resolve is not defined
at string.Editor._buildCommand.string.Editor._compileCommand.Editor.Builder.compileCommand.t (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/index.js:1:1919)
at r.series.e (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/lib/builder/index.js:1:5196)
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:726:13
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:52:16
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:269:32
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:44:16
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:723:17
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:167:37
at
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
报错,但是可以生成apk
-
重现方式:
-
之前哪个版本是正常的 :
-
手机型号 :
-
手机浏览器 :
-
编辑器操作系统 :mac
-
编辑器之前是否有其它报错 :没有
-
出现概率:必现
-
额外线索:
