-
Creator 版本:2.0.9 P1 Windows
-
目标平台: Android 真机
-
详细报错信息,包含调用堆栈:
-
重现方式:任何一个2.0.9的项目直接构建Android,然后点击编译都会报错
-
之前哪个版本是正常的 :
-
手机型号 :
-
手机浏览器 :
-
编辑器操作系统 :Windows
-
编辑器之前是否有其它报错 :
-
出现概率:100%
-
额外线索:
以下是编译的日志:
`编译模式:release
使用 Android Studio 工程:D:\Study\CompanyProject\hekaFB\heka-main\build\jsb-default\frameworks\runtime-src\proj.android-studio
正在生成 apk 文件…
正在执行:’“D:\Study\CompanyProject\hekaFB\heka-main\build\jsb-default\frameworks\runtime-src\proj.android-studio\gradlew.bat” --parallel --info assembleRelease’
… 省略
- What went wrong:
Execution failed for task ‘:heka:externalNativeBuildRelease’.
Build command failed.
Error while executing process D:\Study\Android\android-sdk-studio\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\Study\CompanyProject\hekaFB\heka-main\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\jni\Android.mk NDK_APPLICATION_MK=D:\Study\CompanyProject\hekaFB\heka-main\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=D:/Study/CompanyProject/hekaFB/heka-main/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=D:\Study\CompanyProject\hekaFB\heka-main\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\ndkBuild\release\lib NDK_TOOLCHAIN_VERSION=clang NDK_MODULE_PATH=D:\Study\CompanyProject\hekaFB\heka-main\build\jsb-default\frameworks\cocos2d-x;D:\Study\CompanyProject\hekaFB\heka-main\build\jsb-default\frameworks\cocos2d-x\cocos;D:\Study\CompanyProject\hekaFB\heka-main\build\jsb-default\frameworks\cocos2d-x\external -j12 NDK_DEBUG=0 D:/Study/CompanyProject/hekaFB/heka-main/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/x86/libcocos2djs.so}
[x86] Compile++ : cocos2dx_static <= jsb_cocos2dx_audioengine_auto.cpp
[x86] Compile++ : editor_support_static <= jsb_dragonbones_manual.cpp
[x86] Compile++ : editor_support_static <= jsb_cocos2dx_dragonbones_auto.cpp
[x86] Compile++ : cocos2djs_shared <= main.cpp
[x86] Compile++ : cocos2djs_shared <= AppDelegate.cpp
[x86] Compile++ : cocos2djs_shared <= jsb_module_register.cpp
[x86] Compile++ : cocos2dx_static <= cocos2d.cpp
[x86] Compile++ : cocos2dx_static <= CCFileUtils.cpp
[x86] Compile++ : cocos2dx_static <= CCImage.cpp
[x86] Compile++ : cocos2dx_static <= CCSAXParser.cpp
[x86] Compile++ : cocos2dx_static <= MathUtil.cpp
[x86] Compile++ : cocos2dx_static <= CCGeometry.cpp
[x86] Compile++ : cocos2dx_static <= CCVertex.cpp
[x86] Compile++ : cocos2dx_static <= Mat4.cpp
[x86] Compile++ : cocos2dx_static <= Quaternion.cpp
[x86] Compile++ : cocos2dx_static <= Vec2.cpp
[x86] Compile++ : cocos2dx_static <= Vec3.cpp
[x86] Compile++ : cocos2dx_static <= Vec4.cpp
[x86] Compile++ : cocos2dx_static <= CCAutoreleasePool.cpp
[x86] Compile++ : cocos2dx_static <= CCConfiguration.cpp
[x86] Compile++ : cocos2dx_static <= CCData.cpp
[x86] Compile++ : cocos2dx_static <= CCRef.cpp
[x86] Compile++ : cocos2dx_static <= CCValue.cpp
[x86] Compile++ : cocos2dx_static <= CCThreadPool.cpp
[x86] Compile++ : cocos2dx_static <= TGAlib.cpp
[x86] Compile++ : cocos2dx_static <= ZipUtils.cpp
[x86] Compile++ : cocos2dx_static <= base64.cpp
[x86] Compile++ : cocos2dx_static <= ccCArray.cpp
[x86] Compile++ : cocos2dx_static <= ccRandom.cpp
[x86] Compile++ : cocos2dx_static <= ccTypes.cpp
[x86] Compile++ : cocos2dx_static <= ccUTF8.cpp
[x86] Compile++ : cocos2dx_static <= ccUtils.cpp
[x86] Compile++ : cocos2dx_static <= etc1.cpp
[x86] Compile++ : cocos2dx_static <= pvr.cpp
[x86] Compile++ : cocos2dx_static <= CCLog.cpp
[x86] Compile++ : cocos2dx_static <= CCScheduler.cpp
[x86] Compile++ : cocos2dx_static <= csscolorparser.cpp
[x86] Compile++ : cocos2dx_static <= CCGLUtils.cpp
[x86] Compile++ : cocos2dx_static <= CCRenderTexture.cpp
[x86] Compile++ : cocos2dx_static <= LocalStorage-android.cpp
[x86] Compile++ : cocos2dx_static <= CCDownloader.cpp
[x86] Compile++ : cocos2dx_static <= CCDownloader-android.cpp
[x86] Compile++ : cocos2dx_static <= Uri.cpp
D:/Study/CompanyProject/hekaFB/heka-main/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCGLUtils.cpp:86:66: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
if(activeTextureUnit < MAX_TEXTURE_UNIT && activeTextureUnit >= 0)
~~~~~~~~~~~~~~~~~ ^ ~
1 warning generated.
[x86] Compile++ : cocos2dx_static <= HttpClient-android.cpp
[x86] Compile++ : cocos2dx_static <= jsb_cocos2dx_auto.cpp
[x86] Compile++ : cocos2dx_static <= jsb_cocos2dx_extension_auto.cpp
[x86] Compile++ : cocos2dx_static <= jsb_cocos2dx_network_auto.cpp
[x86] Compile++ : cocos2dx_static <= JavaScriptJavaBridge.cpp
[x86] Compile++ : cocos2dx_static <= jsb_opengl_manual.cpp
[x86] Compile++ : cocos2dx_static <= jsb_opengl_utils.cpp
[x86] Compile++ : cocos2dx_static <= jsb_classtype.cpp
[x86] Compile++ : cocos2dx_static <= jsb_conversions.cpp
[x86] Compile++ : cocos2dx_static <= jsb_cocos2dx_manual.cpp
[x86] Compile++ : cocos2dx_static <= jsb_global.cpp
[x86] Compile++ : cocos2dx_static <= jsb_xmlhttprequest.cpp
[x86] Compile++ : cocos2dx_static <= jsb_cocos2dx_network_manual.cpp
[x86] Compile++ : cocos2dx_static <= jsb_platform_android.cpp
[x86] Compile++ : cocos2dx_static <= config.cpp
[x86] Compile++ : cocos2dx_static <= HandleObject.cpp
[x86] Compile++ : cocos2dx_static <= MappingUtils.cpp
[x86] Compile++ : cocos2dx_static <= RefCounter.cpp
[x86] Compile++ : cocos2dx_static <= Value.cpp
[x86] Compile++ : cocos2dx_static <= State.cpp
[x86] Compile++ : cocos2dx_static <= Class.cpp
[x86] Compile++ : cocos2dx_static <= Object.cpp
[x86] Compile++ : cocos2dx_static <= ObjectWrap.cpp
[x86] Compile++ : cocos2dx_static <= ScriptEngine.cpp
[x86] Compile++ : cocos2dx_static <= Utils.cpp
[x86] Compile++ : cocos2dx_static <= EventDispatcher.cpp
[x86] Compile++ : cocos2dx_static <= xxtea.cpp
[x86] Compile++ : cocos2dx_static <= tinyxml2.cpp
[x86] Compile++ : cocos2dx_static <= ioapi_mem.cpp
[x86] Compile++ : cocos2dx_static <= ioapi.cpp
[x86] Compile++ : cocos2dx_static <= unzip.cpp
[x86] Compile++ : cocos2dx_static <= ConvertUTFWrapper.cpp
[x86] Compile : cocos2dx_static <= ConvertUTF.c
[x86] Compile++ : cocos2dx_static <= EditBox-android.cpp
[x86] Compile++ : cocos2dx_static <= SHA1.cpp
[x86] Compile++ : cocos2dx_static <= util.cc
[x86] Compile++ : cocos2dx_static <= env.cc
[x86] Compile++ : cocos2dx_static <= inspector_agent.cc
[x86] Compile++ : cocos2dx_static <= inspector_io.cc
[x86] Compile++ : cocos2dx_static <= inspector_socket.cc
[x86] Compile++ : cocos2dx_static <= inspector_socket_server.cc
[x86] Compile++ : cocos2dx_static <= node.cc
[x86] Compile++ : cocos2dx_static <= node_debug_options.cc
error: error opening ‘D:/Study/CompanyProject/hekaFB/heka-main/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/x86/objs/cocos2dx_static/scripting/js-bindings/jswrapper/v8/debugger/inspector_socket_server.o.d’: No such file or directory
1 error generated.
[x86] Compile : cocos2dx_static <= http_parser.c
[x86] Compile++ : cocos2dx_static <= GFXUtils.cpp
make: *** [D:/Study/CompanyProject/hekaFB/heka-main/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/x86/objs/cocos2dx_static/scripting/js-bindings/jswrapper/v8/debugger/inspector_socket_server.o] Error 1
make: *** Waiting for unfinished jobs…
[x86] Compile++ : cocos_extension_static <= Manifest.cpp
[x86] Compile++ : cocos_extension_static <= AssetsManagerEx.cpp
-
Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 20s
44 actionable tasks: 8 executed, 36 up-to-date
AAPT2 aapt2-3.2.0-4818971-windows Daemon #0: shutdown
AAPT2 aapt2-3.2.0-4818971-windows Daemon #1: shutdown
执行命令出错,返回值:1。
`