求大神帮忙看看~~——cocos creator 打包安卓编译出错

  • What went wrong:
    Execution failed for task ‘:game:externalNativeBuildReleaseFeature’.

Build command failed.
Error while executing process C:\Users\rourouyang\AppData\Local\Android\Sdk\ndk\17.2.4988734\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\rourouyang\Documents\NewProject_4\build\jsb-link\frameworks\runtime-src\proj.android-studio\game\jni\Android.mk NDK_APPLICATION_MK=C:\Users\rourouyang\Documents\NewProject_4\build\jsb-link\frameworks\runtime-src\proj.android-studio\game\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=C:/Users/rourouyang/Documents/NewProject_4/build/jsb-link/frameworks/runtime-src/proj.android-studio/game/build/intermediates/ndkBuild/feature/release/obj NDK_LIBS_OUT=C:\Users\rourouyang\Documents\NewProject_4\build\jsb-link\frameworks\runtime-src\proj.android-studio\game\build\intermediates\ndkBuild\feature\release\lib NDK_TOOLCHAIN_VERSION=clang NDK_MODULE_PATH=C:\CocosDashboard_1.0.5\resources.editors\Creator\2.3.3-rc.4\resources\cocos2d-x;C:\CocosDashboard_1.0.5\resources.editors\Creator\2.3.3-rc.4\resources\cocos2d-x\cocos;C:\CocosDashboard_1.0.5\resources.editors\Creator\2.3.3-rc.4\resources\cocos2d-x\external -j8 NDK_DEBUG=0 C:/Users/rourouyang/Documents/NewProject_4/build/jsb-link/frameworks/runtime-src/proj.android-studio/game/build/intermediates/ndkBuild/feature/release/obj/local/armeabi-v7a/libcocos2djs.so}
Android NDK: WARNING: Unsupported source file extensions in C:\CocosDashboard_1.0.5\resources.editors\Creator\2.3.3-rc.4\resources\cocos2d-x/cocos/Android.mk for module cocos2dx_static
Android NDK: renderer/memop/RecyclePool.hpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= jsb_gfx_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= jsb_renderer_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= jsb_renderer_manual.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= jsb_gfx_manual.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= jsb_video_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= jsb_webview_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= jsb_cocos2dx_audioengine_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= SocketIO.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= WebSocketServer.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= WebSocket-libwebsockets.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= jsb_socketio.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= jsb_websocket.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= jsb_websocket_server.cpp
[armeabi-v7a] Compile++ thumb: audioengine_static <= mp3reader.cpp
[armeabi-v7a] Compile++ thumb: audioengine_static <= tinysndfile.cpp
[armeabi-v7a] Compile++ arm : editor_support_static <= jsb_cocos2dx_particle_auto.cpp
[armeabi-v7a] Compile++ arm : editor_support_static <= jsb_spine_manual.cpp
[armeabi-v7a] Compile++ arm : editor_support_static <= jsb_cocos2dx_spine_auto.cpp
[armeabi-v7a] Compile++ arm : editor_support_static <= jsb_dragonbones_manual.cpp
[armeabi-v7a] Compile++ arm : editor_support_static <= jsb_cocos2dx_dragonbones_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= main.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= AppDelegate.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= jsb_module_register.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= cocos2d.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCFileUtils.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCImage.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCSAXParser.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= MathUtil.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCGeometry.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCVertex.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= Mat4.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= Quaternion.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= Vec2.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= Vec3.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= Vec4.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= Mat3.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCAutoreleasePool.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCConfiguration.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCData.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCRef.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCValue.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCThreadPool.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= TGAlib.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= ZipUtils.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= base64.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= ccCArray.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= ccRandom.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= ccTypes.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= ccUTF8.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= ccUtils.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= etc1.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= etc2.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCLog.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= pvr.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCScheduler.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= csscolorparser.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCGLUtils.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCRenderTexture.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= LocalStorage-android.cpp
C:/CocosDashboard_1.0.5/resources/.editors/Creator/2.3.3-rc.4/resources/cocos2d-x/cocos/base/CCGLUtils.cpp:86:66: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-unsigned-zero-compare]
if(activeTextureUnit < MAX_TEXTURE_UNIT && activeTextureUnit >= 0)
~~~~~~~~~~~~~~~~~ ^ ~

检查下你cocos编辑器里的ndk sdk路径和as中的路径

看你工程路径有点深,你将工程放到盘符根目录下编译试试,路径太长会出现各种问题。

1赞

问题解决了么,我报的错和你的一样,网上说的那些方法都没用。不是路径不是大小写也不是版本没对上。androidstudio可以直接在设备上debug调试,但是就是跑不了工程。creator上编译报一样的问题。

解决了吗?同样问题
啊~来个官方解答下啊

请问该问题解决了吗

https://forum.cocos.org/t/topic/94246/1

同样的问题:default模式出的问题,link模式不会

,官当能帮忙解决一下吗:joy: