@Jeff 写道:
Creator 版本:2.0.2
目标平台: Android
详细报错信息,包含调用堆栈:
Trying to start C:\Users\TaoQi\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt2.exe
Trying to start C:\Users\TaoQi\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt2.exe
Trying to start C:\Users\TaoQi\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt2.exe
Trying to start C:\Users\TaoQi\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt2.exe
Started 2059579470
:hello_world:processReleaseManifest (Thread[Daemon worker Thread 10,5,main]) completed. Took 0.151 secs.
:hello_world:generateJsonModelRelease (Thread[Daemon worker Thread 10,5,main]) started.
:hello_world:generateJsonModelRelease
Putting task artifact state for task ':hello_world:generateJsonModelRelease' into context took 0.0 secs.
Skipping task ':hello_world:generateJsonModelRelease' as it is up-to-date (took 0.001 secs).
:hello_world:generateJsonModelRelease UP-TO-DATE
:hello_world:generateJsonModelRelease (Thread[Daemon worker Thread 10,5,main]) completed. Took 0.001 secs.
:hello_world:externalNativeBuildRelease (Thread[Daemon worker Thread 10,5,main]) started.
:hello_world:externalNativeBuildRelease
Putting task artifact state for task ':hello_world:externalNativeBuildRelease' into context took 0.0 secs.
Executing task ':hello_world:externalNativeBuildRelease' (up-to-date check took 0.0 secs) due to:
Task has not declared any outputs.
externalNativeBuildRelease: starting build
externalNativeBuildRelease: reading expected JSONs
externalNativeBuildRelease: done reading expected JSONs
externalNativeBuildRelease: executing build commands for targets: 'cocos2djs'
externalNativeBuildRelease: about to build C:\Users\TaoQi\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Android.mk NDK_APPLICATION_MK=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build\intermediates\ndkBuild\release\lib NDK_TOOLCHAIN_VERSION=4.9 NDK_MODULE_PATH=C:\CocosCreator\resources\cocos2d-x;C:\CocosCreator\resources\cocos2d-x\cocos;C:\CocosCreator\resources\cocos2d-x\external -j4 NDK_DEBUG=0 C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libcocos2djs.so
externalNativeBuildRelease: not building target pvmp3dec because it isn't in targets set
externalNativeBuildRelease: not building target cocos2dandroid because it isn't in targets set
externalNativeBuildRelease: not building target extension because it isn't in targets set
externalNativeBuildRelease: not building target network because it isn't in targets set
externalNativeBuildRelease: not building target vorbisidec because it isn't in targets set
externalNativeBuildRelease: not building target audioengine because it isn't in targets set
externalNativeBuildRelease: not building target cocos2d because it isn't in targets set
externalNativeBuildRelease: not building target cpufeatures because it isn't in targets set
Build cocos2djs armeabi-v7a
externalNativeBuildRelease: Executable : C:\Users\TaoQi\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd
arguments :
NDK_PROJECT_PATH=null
APP_BUILD_SCRIPT=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Android.mk
NDK_APPLICATION_MK=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk
APP_ABI=armeabi-v7a
NDK_ALL_ABIS=armeabi-v7a
NDK_DEBUG=0
APP_PLATFORM=android-16
NDK_OUT=C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj
NDK_LIBS_OUT=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build\intermediates\ndkBuild\release\lib
NDK_TOOLCHAIN_VERSION=4.9
NDK_MODULE_PATH=C:\CocosCreator\resources\cocos2d-x;C:\CocosCreator\resources\cocos2d-x\cocos;C:\CocosCreator\resources\cocos2d-x\external
-j4
NDK_DEBUG=0
C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libcocos2djs.so
jvmArgs :Executable : C:\Users\TaoQi\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd
arguments :
NDK_PROJECT_PATH=null
APP_BUILD_SCRIPT=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Android.mk
NDK_APPLICATION_MK=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk
APP_ABI=armeabi-v7a
NDK_ALL_ABIS=armeabi-v7a
NDK_DEBUG=0
APP_PLATFORM=android-16
NDK_OUT=C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj
NDK_LIBS_OUT=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build\intermediates\ndkBuild\release\lib
NDK_TOOLCHAIN_VERSION=4.9
NDK_MODULE_PATH=C:\CocosCreator\resources\cocos2d-x;C:\CocosCreator\resources\cocos2d-x\cocos;C:\CocosCreator\resources\cocos2d-x\external
-j4
NDK_DEBUG=0
C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libcocos2djs.so
jvmArgs :Starting process 'command 'C:\Users\TaoQi\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd''. Working directory: C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app Command: C:\Users\TaoQi\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Android.mk NDK_APPLICATION_MK=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build\intermediates\ndkBuild\release\lib NDK_TOOLCHAIN_VERSION=4.9 NDK_MODULE_PATH=C:\CocosCreator\resources\cocos2d-x;C:\CocosCreator\resources\cocos2d-x\cocos;C:\CocosCreator\resources\cocos2d-x\external -j4 NDK_DEBUG=0 C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libcocos2djs.so
Started 193422121
Slave 2059579470 is ready
AAPT2 processed(2059579470) AndroidManifest.xml job:QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@74054166}
AAPT1 err(Facade for 2059579470): error: invalid file path 'C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml'. -> QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@74054166}
AAPT warning(1867309708), Job(QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@74054166}): error: invalid file path 'C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml'.
AAPT1 err(Facade for 2059579470): Error -> QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@74054166}
AAPT warning(1867309708), Job(QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@74054166}): Error
AAPT1 err(Facade for 2059579470): Done -> QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@74054166}
error: invalid file path 'C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml'.AAPT warning(1867309708), Job(QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@74054166}): Done
Exception while processing job : QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=C:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@74054166} : com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Process (2059579470) processed 1 files
Thread(queued-resource-processor_58): Process(2059579470), after shutdown queue_size=0
Started 919466209
Slave 193422121 is ready
Process (193422121) processed 0 files
Thread(queued-resource-processor_57): Process(193422121), after shutdown queue_size=0
Started 54400497
Slave 919466209 is ready
Process (919466209) processed 0 files
Thread(queued-resource-processor_59): Process(919466209), after shutdown queue_size=0
Successfully started process 'command 'C:\Users\TaoQi\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd''
Slave 54400497 is ready
Process (54400497) processed 0 files
Thread(queued-resource-processor_60): Process(54400497), after shutdown queue_size=0
Shutdown finished in 262ms
:libcocos2dx:verifyReleaseResources FAILED
:libcocos2dx:verifyReleaseResources (Thread[Task worker for ':' Thread 3,5,main]) completed. Took 0.421 secs.
:libcocos2dx:platformAttrExtractor (Thread[Task worker for ':' Thread 2,5,main]) completed. Took 0.542 secs.
Android NDK: WARNING: APP_STL gnustl_static is deprecated and will be removed in the next release. Please switch to either c++static or c++shared. See https://developer.android.com/ndk/guides/cpp-support.html for more information.
Android NDK: WARNING: Deprecated NDK_TOOLCHAIN_VERSION value: 4.9. GCC is no longer supported and will be removed in the next release. See https://android.googlesource.com/platform/ndk/+/master/docs/ClangMigration.md.
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= AppDelegate.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= jsb_module_register.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= inspector_socket_server.cc
In file included from C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/jswrapper/v8/debugger/../../config.hpp:53:0,
from C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/jswrapper/v8/debugger/inspector_socket_server.h:4,
from C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/jswrapper/v8/debugger/inspector_socket_server.cc:1:
c:\users\taoqi\appdata\local\android\sdk\ndk-bundle\sysroot\usr\include\android\log.h:210:1: fatal error: opening dependency file C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/cocos2dx_static/scripting/js-bindings/jswrapper/v8/debugger/inspector_socket_server.o.d: No such file or directory
}
^
compilation terminated.
make: *** [C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/cocos2dx_static/scripting/js-bindings/jswrapper/v8/debugger/inspector_socket_server.o] Error 1
make: *** Waiting for unfinished jobs....
:hello_world:externalNativeBuildRelease FAILED
:hello_world:externalNativeBuildRelease (Thread[Daemon worker Thread 10,5,main]) completed. Took 11.777 secs.FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
What went wrong:
Execution failed for task ':libcocos2dx:verifyReleaseResources'.java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
==============================================================================2: Task failed with an exception.
What went wrong:
Execution failed for task ':hello_world:externalNativeBuildRelease'.Build command failed.
Error while executing process C:\Users\TaoQi\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Android.mk NDK_APPLICATION_MK=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=C:\Users\TaoQi\Desktop\cocos_android\hello\test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build\intermediates\ndkBuild\release\lib NDK_TOOLCHAIN_VERSION=4.9 NDK_MODULE_PATH=C:\CocosCreator\resources\cocos2d-x;C:\CocosCreator\resources\cocos2d-x\cocos;C:\CocosCreator\resources\cocos2d-x\external -j4 NDK_DEBUG=0 C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libcocos2djs.so}
Android NDK: WARNING: APP_STL gnustl_static is deprecated and will be removed in the next release. Please switch to either c++static or c++shared. See https://developer.android.com/ndk/guides/cpp-support.html for more information.
Android NDK: WARNING: Deprecated NDK_TOOLCHAIN_VERSION value: 4.9. GCC is no longer supported and will be removed in the next release. See https://android.googlesource.com/platform/ndk/+/master/docs/ClangMigration.md.
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= AppDelegate.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= jsb_module_register.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= inspector_socket_server.cc
In file included from C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/jswrapper/v8/debugger/../../config.hpp:53:0,
from C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/jswrapper/v8/debugger/inspector_socket_server.h:4,
from C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/jswrapper/v8/debugger/inspector_socket_server.cc:1:
c:\users\taoqi\appdata\local\android\sdk\ndk-bundle\sysroot\usr\include\android\log.h:210:1: fatal error: opening dependency file C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/cocos2dx_static/scripting/js-bindings/jswrapper/v8/debugger/inspector_socket_server.o.d: No such file or directory
}
^
compilation terminated.
make: *** [C:/Users/TaoQi/Desktop/cocos_android/hello/test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/cocos2dx_static/scripting/js-bindings/jswrapper/v8/debugger/inspector_socket_server.o] Error 1
make: *** Waiting for unfinished jobs....Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
==============================================================================Get more help at https://help.gradle.org
BUILD FAILED in 14s
38 actionable tasks: 7 executed, 31 up-to-date
执行命令出错,返回值:1。在论坛上面搜过类似的,但是没有解决方案。各位大佬有遇到这个问题吗?
帖子: 1
参与者: 1