Starting process ‘command ‘D:\AndroidNDK\android-ndk-r16b\ndk-build.cmd’’. Working directory: E:\cocos\project\MapEditor\build\jsb-link\frameworks\runtime-src\proj.android-studio\app Command: D:\AndroidNDK\android-ndk-r16b\ndk-build.cmd NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\cocos\project\MapEditor\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Android.mk NDK_APPLICATION_MK=E:\cocos\project\MapEditor\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=E:/cocos/project/MapEditor/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=E:\cocos\project\MapEditor\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build\intermediates\ndkBuild\debug\lib NDK_TOOLCHAIN_VERSION=4.9 NDK_MODULE_PATH=D:\CocosCreator\resources\cocos2d-x;D:\CocosCreator\resources\cocos2d-x\cocos;D:\CocosCreator\resources\cocos2d-x\external -j12 NDK_DEBUG=1 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n
Successfully started process ‘command ‘D:\AndroidNDK\android-ndk-r16b\ndk-build.cmd’’
Executing task ‘:libcocos2dx:platformAttrExtractor’ (up-to-date check took 0.067 secs) due to:
No history is available.
:libcocos2dx:generateDebugBuildConfig (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:generateDebugBuildConfig
Putting task artifact state for task ‘:libcocos2dx:generateDebugBuildConfig’ into context took 0.0 secs.
Executing task ‘:libcocos2dx:generateDebugBuildConfig’ (up-to-date check took 0.002 secs) due to:
No history is available.
:libcocos2dx:generateDebugBuildConfig (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.011 secs.
:libcocos2dx:prepareLintJar (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:prepareLintJar
Putting task artifact state for task ‘:libcocos2dx:prepareLintJar’ into context took 0.0 secs.
Executing task ‘:libcocos2dx:prepareLintJar’ (up-to-date check took 0.0 secs) due to:
No history is available.
:libcocos2dx:prepareLintJar (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.003 secs.
:libcocos2dx:javaPreCompileDebug (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:javaPreCompileDebug
Putting task artifact state for task ‘:libcocos2dx:javaPreCompileDebug’ into context took 0.0 secs.
Executing task ‘:libcocos2dx:javaPreCompileDebug’ (up-to-date check took 0.073 secs) due to:
No history is available.
:libcocos2dx:javaPreCompileDebug (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.079 secs.
:libcocos2dx:processDebugJavaRes (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:processDebugJavaRes
Putting task artifact state for task ‘:libcocos2dx:processDebugJavaRes’ into context took 0.0 secs.
Skipping task ‘:libcocos2dx:processDebugJavaRes’ as it has no source files and no previous output files.
:libcocos2dx:processDebugJavaRes NO-SOURCE
:libcocos2dx:processDebugJavaRes (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.001 secs.
:libcocos2dx:mergeDebugShaders (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:mergeDebugShaders
Putting task artifact state for task ‘:libcocos2dx:mergeDebugShaders’ into context took 0.0 secs.
Executing task ‘:libcocos2dx:mergeDebugShaders’ (up-to-date check took 0.003 secs) due to:
No history is available.
All input files are considered out-of-date for incremental task ‘:libcocos2dx:mergeDebugShaders’.
Unable do incremental execution: full task run
:libcocos2dx:mergeDebugShaders (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.008 secs.
:libcocos2dx:compileDebugShaders (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:compileDebugShaders
Putting task artifact state for task ‘:libcocos2dx:compileDebugShaders’ into context took 0.001 secs.
Executing task ‘:libcocos2dx:compileDebugShaders’ (up-to-date check took 0.001 secs) due to:
No history is available.
:libcocos2dx:compileDebugShaders (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.003 secs.
:libcocos2dx:generateDebugAssets (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:generateDebugAssets
Skipping task ‘:libcocos2dx:generateDebugAssets’ as it has no actions.
:libcocos2dx:generateDebugAssets (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.001 secs.
:libcocos2dx:mergeDebugAssets (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:mergeDebugAssets
Putting task artifact state for task ‘:libcocos2dx:mergeDebugAssets’ into context took 0.0 secs.
Executing task ‘:libcocos2dx:mergeDebugAssets’ (up-to-date check took 0.003 secs) due to:
No history is available.
All input files are considered out-of-date for incremental task ‘:libcocos2dx:mergeDebugAssets’.
Unable do incremental execution: full task run
:libcocos2dx:mergeDebugAssets (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.008 secs.
:libcocos2dx:compileDebugNdk (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:compileDebugNdk
Putting task artifact state for task ‘:libcocos2dx:compileDebugNdk’ into context took 0.0 secs.
Skipping task ‘:libcocos2dx:compileDebugNdk’ as it has no source files and no previous output files.
:libcocos2dx:compileDebugNdk NO-SOURCE
:libcocos2dx:compileDebugNdk (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.002 secs.
:libcocos2dx:mergeDebugJniLibFolders (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:mergeDebugJniLibFolders
Putting task artifact state for task ‘:libcocos2dx:mergeDebugJniLibFolders’ into context took 0.0 secs.
Executing task ‘:libcocos2dx:mergeDebugJniLibFolders’ (up-to-date check took 0.001 secs) due to:
No history is available.
All input files are considered out-of-date for incremental task ‘:libcocos2dx:mergeDebugJniLibFolders’.
Unable do incremental execution: full task run
:libcocos2dx:mergeDebugJniLibFolders (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.005 secs.
:libcocos2dx:transformNativeLibsWithMergeJniLibsForDebug (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:transformNativeLibsWithMergeJniLibsForDebug
Putting task artifact state for task ‘:libcocos2dx:transformNativeLibsWithMergeJniLibsForDebug’ into context took 0.001 secs.
Executing task ‘:libcocos2dx:transformNativeLibsWithMergeJniLibsForDebug’ (up-to-date check took 0.002 secs) due to:
No history is available.
All input files are considered out-of-date for incremental task ‘:libcocos2dx:transformNativeLibsWithMergeJniLibsForDebug’.
:libcocos2dx:transformNativeLibsWithMergeJniLibsForDebug (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.057 secs.
:libcocos2dx:transformNativeLibsWithStripDebugSymbolForDebug (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:transformNativeLibsWithStripDebugSymbolForDebug
Putting task artifact state for task ‘:libcocos2dx:transformNativeLibsWithStripDebugSymbolForDebug’ into context took 0.001 secs.
Executing task ‘:libcocos2dx:transformNativeLibsWithStripDebugSymbolForDebug’ (up-to-date check took 0.105 secs) due to:
No history is available.
All input files are considered out-of-date for incremental task ‘:libcocos2dx:transformNativeLibsWithStripDebugSymbolForDebug’.
:libcocos2dx:transformNativeLibsWithStripDebugSymbolForDebug (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.11 secs.
:libcocos2dx:transformNativeLibsWithIntermediateJniLibsForDebug (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:transformNativeLibsWithIntermediateJniLibsForDebug
Putting task artifact state for task ‘:libcocos2dx:transformNativeLibsWithIntermediateJniLibsForDebug’ into context took 0.0 secs.
Executing task ‘:libcocos2dx:transformNativeLibsWithIntermediateJniLibsForDebug’ (up-to-date check took 0.001 secs) due to:
No history is available.
All input files are considered out-of-date for incremental task ‘:libcocos2dx:transformNativeLibsWithIntermediateJniLibsForDebug’.
:libcocos2dx:transformNativeLibsWithIntermediateJniLibsForDebug (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.011 secs.
:libcocos2dx:mergeDebugConsumerProguardFiles (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:mergeDebugConsumerProguardFiles
Putting task artifact state for task ‘:libcocos2dx:mergeDebugConsumerProguardFiles’ into context took 0.0 secs.
Executing task ‘:libcocos2dx:mergeDebugConsumerProguardFiles’ (up-to-date check took 0.001 secs) due to:
No history is available.
:libcocos2dx:mergeDebugConsumerProguardFiles (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.002 secs.
:libcocos2dx:transformNativeLibsWithSyncJniLibsForDebug (Thread[Task worker for ‘:’ Thread 11,5,main]) started.
:libcocos2dx:transformNativeLibsWithSyncJniLibsForDebug
Putting task artifact state for task ‘:libcocos2dx:transformNativeLibsWithSyncJniLibsForDebug’ into context took 0.0 secs.
Executing task ‘:libcocos2dx:transformNativeLibsWithSyncJniLibsForDebug’ (up-to-date check took 0.005 secs) due to:
No history is available.
All input files are considered out-of-date for incremental task ‘:libcocos2dx:transformNativeLibsWithSyncJniLibsForDebug’.
:libcocos2dx:transformNativeLibsWithSyncJniLibsForDebug (Thread[Task worker for ‘:’ Thread 11,5,main]) completed. Took 0.014 secs.
:libcocos2dx:platformAttrExtractor (Thread[Task worker for ‘:’ Thread 8,5,main]) completed. Took 0.417 secs.
:libcocos2dx:processDebugResources (Thread[Task worker for ‘:’ Thread 8,5,main]) started.
:libcocos2dx:processDebugResources
Putting task artifact state for task ‘:libcocos2dx:processDebugResources’ into context took 0.001 secs.
Executing task ‘:libcocos2dx:processDebugResources’ (up-to-date check took 0.008 secs) due to:
No history is available.
All input files are considered out-of-date for incremental task ‘:libcocos2dx:processDebugResources’.
Unable do incremental execution: full task run
:libcocos2dx:processDebugResources (Thread[Task worker for ‘:’ Thread 8,5,main]) completed. Took 0.184 secs.
:libcocos2dx:generateDebugSources (Thread[Task worker for ‘:’ Thread 8,5,main]) started.
:libcocos2dx:generateDebugSources
Skipping task ‘:libcocos2dx:generateDebugSources’ as it has no actions.
:libcocos2dx:generateDebugSources (Thread[Task worker for ‘:’ Thread 8,5,main]) completed. Took 0.001 secs.
:libcocos2dx:compileDebugJavaWithJavac (Thread[Task worker for ‘:’ Thread 8,5,main]) started.
:libcocos2dx:compileDebugJavaWithJavac
Putting task artifact state for task ‘:libcocos2dx:compileDebugJavaWithJavac’ into context took 0.001 secs.
file or directory ‘D:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\src\main\java’, not found
file or directory ‘D:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\src\main\java’, not found
file or directory ‘D:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\src\debug\java’, not found
Executing task ‘:libcocos2dx:compileDebugJavaWithJavac’ (up-to-date check took 0.398 secs) due to:
No history is available.
All input files are considered out-of-date for incremental task ‘:libcocos2dx:compileDebugJavaWithJavac’.
Compiling with source level 1.8 and target level 1.8.
Creating new cache for classAnalysis, path E:\cocos\project\MapEditor\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\4.1\javaCompile\classAnalysis.bin, access org.gradle.cache.internal.DefaultCacheAccess@4081b223
Creating new cache for jarAnalysis, path E:\cocos\project\MapEditor\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\4.1\javaCompile\jarAnalysis.bin, access org.gradle.cache.internal.DefaultCacheAccess@4081b223
Creating new cache for taskJars, path E:\cocos\project\MapEditor\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\4.1\javaCompile\taskJars.bin, access org.gradle.cache.internal.DefaultCacheAccess@4081b223
Creating new cache for taskHistory, path E:\cocos\project\MapEditor\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\4.1\javaCompile\taskHistory.bin, access org.gradle.cache.internal.DefaultCacheAccess@4081b223
:libcocos2dx:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
file or directory ‘D:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\src\main\java’, not found
file or directory ‘D:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\src\debug\java’, not found
Compiling with JDK Java compiler API.
D:\CocosCreator\resources\cocos2d-x\cocos\platform\android\java\src\org\cocos2dx\lib\Utils.java:36: 错误: 需要<标识符>
N
^
:libcocos2dx:compileDebugJavaWithJavac FAILED
:libcocos2dx:compileDebugJavaWithJavac (Thread[Task worker for ‘:’ Thread 8,5,main]) completed. Took 0.657 secs.
1 个错误
process_begin: CreateProcess(NULL, “”, …) failed.
External native generate JSON debug: done executing ndkBuild
External native generate JSON debug: write build output E:\cocos\project\MapEditor\build\jsb-link\frameworks\runtime-src\proj.android-studio\app.externalNativeBuild\ndkBuild\debug\armeabi-v7a\ndkBuild_build_output.txt
External native generate JSON debug: parse and convert ndk-build output to build configuration JSON
External native generate JSON debug: found application make file E:\cocos\project\MapEditor\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk
External native generate JSON debug: write command file E:\cocos\project\MapEditor\build\jsb-link\frameworks\runtime-src\proj.android-studio\app.externalNativeBuild\ndkBuild\debug\armeabi-v7a\ndkBuild_build_command.txt
External native generate JSON debug: build complete
External native generate JSON debug: build completed without problems
:MapEditor:generateJsonModelDebug (Thread[Task worker for ‘:’ Thread 3,5,main]) completed. Took 6.931 secs.
36 actionable tasks: 36 executed
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:libcocos2dx:compileDebugJavaWithJavac’.
Compilation failed; see the compiler error output for details.
-
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 13s
执行命令出错,返回值:1。