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

使用Cocos Creator构建发布编译失败的问题

$
0
0

@heyuanchao 写道:

新建一个Hello World项目并打开,点击项目 - 构建发布

发布平台选择 Android
模板选择 binary
点击构建,构建完成后点击编译,结果失败,日志如下:

编译模式:release
使用 Eclipse 工程:E:\hyc\Cocos2d\Projects\NewProject\build\jsb-binary\frameworks\runtime-src\proj.android
正在执行:'"E:\hyc\Android\sdk\tools\android" update project -t android-10 -p E:\hyc\Cocos2d\Projects\NewProject\build\jsb-binary\frameworks\runtime-src\proj.android'

Updated project.properties
Updated local.properties
Updated file E:\hyc\Cocos2d\Projects\NewProject\build\jsb-binary\frameworks\runtime-src\proj.android\proguard-project.txt
正在执行 ndk-build...
NDK 编译模式:release
正在执行:'"E:\hyc\Android\android-ndk-r12b\ndk-build" -C E:\hyc\Cocos2d\Projects\NewProject\build\jsb-binary\frameworks\runtime-src\proj.android -j4 NDK_MODULE_PATH=D:/CocosCreator/resources/cocos2d-x;D:/CocosCreator/resources/cocos2d-x/cocos;D:/CocosCreator/resources/cocos2d-x/external;D:/CocosCreator/resources/cocos2d-x/external/android/include;D:/CocosCreator/resources/cocos2d-x/external/android/spidermonkey NDK_TOOLCHAIN_VERSION=4.9'

Android NDK: WARNING: Ignoring unknown import directory: D:/CocosCreator/resources/cocos2d-x/external/android/include
Android NDK: WARNING: Ignoring unknown import directory: D:/CocosCreator/resources/cocos2d-x/external/android/spidermonkey
Android NDK: ERROR:D:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/proj.android/prebuilt-mk/Android.mk:cocos2d_js_static: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that D:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/proj.android/prebuilt-mk/..........\prebuilt\android/arm64-v8a/libjscocos2d.a exists or that its path is correct
make: Entering directory E:/hyc/Cocos2d/Projects/NewProject/build/jsb-binary/frameworks/runtime-src/proj.android'
make: Leaving directory
E:/hyc/Cocos2d/Projects/NewProject/build/jsb-binary/frameworks/runtime-src/proj.android'
E:/hyc/Android/android-ndk-r12b/build//../build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.
执行命令出错,返回值:2。

经查,在D:\CocosCreator\resources\cocos2d-x\prebuilt\android下只有armeabi文件夹,没有arm64-v8a文件夹,期望解决上述问题

帖子: 5

参与者: 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>