Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

Cocos Creator 编译打包成Android报错

$
0
0

@111369 写道:

新建HelloWolrd工程, 构建完后编译打包成android时报以下错误, 求助 '

The log file path [ /Users/Jiawei/.CocosCreator/logs/native.log ]
Error: Compile failed. The log file path [ /Users/Jiawei/.CocosCreator/logs/native.log ]
at ChildProcess. (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:17943)
at ChildProcess. (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:7252)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Socket. (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close as _onclose

以下是native.log文件的内容

Building mode: release
Using Android Studio project : /Users/Jiawei/Documents/Project/Cocos2d/Examples/build/jsb-default/frameworks/runtime-src/proj.android-studio
running: '/Users/Jiawei/Documents/Tools/bar/sdk/tools/android update project -t android-10 -p /Users/Jiawei/Documents/Project/Cocos2d/Examples/build/jsb-default/frameworks/runtime-src/proj.android-studio/app'

Updated project.properties
Updated local.properties
No project name specified, using Activity name 'AppActivity'.
If you wish to change it, edit the first line of build.xml.
Added file /Users/Jiawei/Documents/Project/Cocos2d/Examples/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build.xml
Added file /Users/Jiawei/Documents/Project/Cocos2d/Examples/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/proguard-project.txt
Building native...
NDK build mode: release
Parse NDK version from file /Users/Jiawei/Documents/Project/Cocos2d/Examples/source.properties failed.
NDK_TOOLCHAIN_VERSION: 4.8
running: '/Users/Jiawei/Documents/Project/Cocos2d/Examples/ndk-build -C /Users/Jiawei/Documents/Project/Cocos2d/Examples/build/jsb-default/frameworks/runtime-src/proj.android-studio/app -j4 NDK_MODULE_PATH=/Users/Jiawei/Documents/Project/Cocos2d/Examples/build/jsb-default/frameworks/cocos2d-x:/Users/Jiawei/Documents/Project/Cocos2d/Examples/build/jsb-default/frameworks/cocos2d-x/cocos:/Users/Jiawei/Documents/Project/Cocos2d/Examples/build/jsb-default/frameworks/cocos2d-x/external NDK_TOOLCHAIN_VERSION=4.8'

/bin/sh: /Users/Jiawei/Documents/Project/Cocos2d/Examples/ndk-build: No such file or directory
Error running command, return code: 127.

求助, 求助 ...

帖子: 6

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>