-
Creator 版本: 3.0
-
目标平台: Android
-
重现方式:直接使用cocos Dashboard创建的hello world工程就这样
-
首个报错:Executing tasks: [:instantapp:assembleRelease] in project E:\work\cocos\NewProject\build\android-001\proj
Task :instantapp:copyReleaseResourcesToAssets UP-TO-DATE
Task :instantapp:preBuild UP-TO-DATE
Task :instantapp:extractProguardFiles UP-TO-DATE
Task :instantapp:preReleaseBuild UP-TO-DATE
Task :libcocos:preBuild UP-TO-DATE
Task :libcocos:preReleaseBuild UP-TO-DATE
Task :libcocos:compileReleaseAidl NO-SOURCE
Task :libservice:preBuild UP-TO-DATE
Task :libservice:preReleaseBuild UP-TO-DATE
Task :libservice:compileReleaseAidl NO-SOURCE
Task :instantapp:compileReleaseAidl NO-SOURCE
Task :libcocos:packageReleaseRenderscript NO-SOURCE
Task :libservice:packageReleaseRenderscript NO-SOURCE
Task :instantapp:compileReleaseRenderscript NO-SOURCE
Task :instantapp:generateReleaseBuildConfig UP-TO-DATE
Task :instantapp:javaPreCompileRelease UP-TO-DATE
Task :libcocos:writeReleaseAarMetadata UP-TO-DATE
Task :libservice:writeReleaseAarMetadata UP-TO-DATE
Task :instantapp:checkReleaseAarMetadata UP-TO-DATE
Task :instantapp:generateReleaseResValues UP-TO-DATE
Task :instantapp:generateReleaseResources UP-TO-DATE
Task :libcocos:compileReleaseRenderscript NO-SOURCE
Task :libcocos:generateReleaseResValues UP-TO-DATE
Task :libcocos:generateReleaseResources UP-TO-DATE
Task :libcocos:packageReleaseResources UP-TO-DATE
Task :libservice:compileReleaseRenderscript NO-SOURCE
Task :libservice:generateReleaseResValues UP-TO-DATE
Task :libservice:generateReleaseResources UP-TO-DATE
Task :libservice:packageReleaseResources UP-TO-DATE
Task :instantapp:mergeReleaseResources UP-TO-DATE
Task :instantapp:createReleaseCompatibleScreenManifests UP-TO-DATE
Task :instantapp:extractDeepLinksRelease UP-TO-DATE
Task :libcocos:extractDeepLinksRelease UP-TO-DATE
Task :libcocos:processReleaseManifest UP-TO-DATE
Task :libservice:extractDeepLinksRelease UP-TO-DATE
Task :libservice:processReleaseManifest UP-TO-DATE
Task :instantapp:processReleaseMainManifest UP-TO-DATE
Task :instantapp:processReleaseManifest UP-TO-DATE
Task :instantapp:processReleaseManifestForPackage UP-TO-DATE
Task :libcocos:parseReleaseLocalResources UP-TO-DATE
Task :libcocos:generateReleaseRFile UP-TO-DATE
Task :libservice:parseReleaseLocalResources UP-TO-DATE
Task :libcocos:generateReleaseBuildConfig UP-TO-DATE
Task :libcocos:javaPreCompileRelease UP-TO-DATE
Task :libcocos:compileReleaseJavaWithJavac
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: D:\WorkTool\CocosDashboard\resources.editors\Creator\3.0.0\resources\resources\3d\cocos2d-x-lite\cocos\platform\android\java\src\com\cocos\lib\CocosReflectionHelper.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
Task :libservice:generateReleaseBuildConfig UP-TO-DATE
Task :libservice:javaPreCompileRelease UP-TO-DATE
Task :instantapp:generateJsonModelRelease
Task :libcocos:mergeReleaseJniLibFolders UP-TO-DATE
Task :libcocos:mergeReleaseNativeLibs NO-SOURCE
Task :libcocos:stripReleaseDebugSymbols NO-SOURCE
Task :libcocos:copyReleaseJniLibsProjectOnly UP-TO-DATE
Task :libservice:mergeReleaseJniLibFolders UP-TO-DATE
Task :libservice:mergeReleaseNativeLibs NO-SOURCE
Task :libservice:stripReleaseDebugSymbols NO-SOURCE
Task :libservice:copyReleaseJniLibsProjectOnly UP-TO-DATE
Task :instantapp:externalNativeBuildRelease FAILED
Build cocos_armeabi-v7a
ninja: Entering directoryE:\work\cocos\NewProject\build\android-001\proj\build\cmake\release\armeabi-v7a' ninja: no work to do. Build cocos_arm64-v8a ninja: Entering directoryE:\work\cocos\NewProject\build\android-001\proj\build\cmake\release\arm64-v8a’
[1/1] Linking CXX shared library E:\work\cocos\NewProject\build\android-001\proj\build\instantapp\intermediates\cmake\release\obj\arm64-v8a\libcocos.so
FAILED: E:/work/cocos/NewProject/build/android-001/proj/build/instantapp/intermediates/cmake/release/obj/arm64-v8a/libcocos.so
cmd.exe /C “cd . && D:\WorkTool\android\SDK\ndk\22.1.7171670\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android21 --gcc-toolchain=D:/WorkTool/android/SDK/ndk/22.1.7171670/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/WorkTool/android/SDK/ndk/22.1.7171670/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -frtti -fexceptions -fsigned-char -DANDROID_INSTANT=1 -O2 -DNDEBUG -Wl,–exclude-libs,libgcc.a -Wl,–exclude-libs,libgcc_real.a -Wl,–exclude-libs,libatomic.a -static-libstdc++ -Wl,–build-id=sha1 -Wl,–no-rosegment -Wl,–fatal-warnings -Wl,–no-undefined -Qunused-arguments -shared -Wl,-soname,libcocos.so -o E:\work\cocos\NewProject\build\android-001\proj\build\instantapp\intermediates\cmake\release\obj\arm64-v8a\libcocos.so CMakeFiles/cocos.dir/E_/work/cocos/NewProject/native/engine/common/Classes/Game.cpp.o CMakeFiles/cocos.dir/jni/main.cpp.o CMakeFiles/cocos.dir/E_/work/cocos/NewProject/native/engine/common/Classes/jsb_module_register.cpp.o -Wl,–whole-archive libcocos2d_jni.a -Wl,–no-whole-archive libcocos2d.a libandroid_platform.a -landroid -llog -lOpenSLES -lEGL -lGLESv2 -lGLESv2 libpvmp3dec.a libvorbisidec.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libwebsockets.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libssl.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/v8/libinspector.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libfreetype.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libjpeg.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libpng.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libuv.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libwebp.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/v8/libv8_monolith.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libz.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libglslang.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libOGLCompiler.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libOSDependent.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libSPIRV.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libglslang-default-resource-limits.a -latomic -lm && cd .”
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPICdefined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by chacha-armv8.o:(.text+0x20) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPICdefined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by poly1305-armv8.o:(.text+0x9A0) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPICdefined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by sha1-armv8.o:(.text+0x1240) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPICdefined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by sha256-armv8.o:(.text+0xF48) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPICdefined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by sha512-armv8.o:(.text+0x10C8) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Task :libcocos:bundleLibCompileToJarRelease
Task :libservice:generateReleaseRFile
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:instantapp:externalNativeBuildRelease’.
Build command failed.
Error while executing process D:\WorkTool\android\SDK\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C E:\work\cocos\NewProject\build\android-001\proj\build\cmake\release\arm64-v8a cocos}
ninja: Entering directory `E:\work\cocos\NewProject\build\android-001\proj\build\cmake\release\arm64-v8a’
[1/1] Linking CXX shared library E:\work\cocos\NewProject\build\android-001\proj\build\instantapp\intermediates\cmake\release\obj\arm64-v8a\libcocos.so
FAILED: E:/work/cocos/NewProject/build/android-001/proj/build/instantapp/intermediates/cmake/release/obj/arm64-v8a/libcocos.so
cmd.exe /C “cd . && D:\WorkTool\android\SDK\ndk\22.1.7171670\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android21 --gcc-toolchain=D:/WorkTool/android/SDK/ndk/22.1.7171670/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/WorkTool/android/SDK/ndk/22.1.7171670/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -frtti -fexceptions -fsigned-char -DANDROID_INSTANT=1 -O2 -DNDEBUG -Wl,–exclude-libs,libgcc.a -Wl,–exclude-libs,libgcc_real.a -Wl,–exclude-libs,libatomic.a -static-libstdc++ -Wl,–build-id=sha1 -Wl,–no-rosegment -Wl,–fatal-warnings -Wl,–no-undefined -Qunused-arguments -shared -Wl,-soname,libcocos.so -o E:\work\cocos\NewProject\build\android-001\proj\build\instantapp\intermediates\cmake\release\obj\arm64-v8a\libcocos.so CMakeFiles/cocos.dir/E_/work/cocos/NewProject/native/engine/common/Classes/Game.cpp.o CMakeFiles/cocos.dir/jni/main.cpp.o CMakeFiles/cocos.dir/E_/work/cocos/NewProject/native/engine/common/Classes/jsb_module_register.cpp.o -Wl,–whole-archive libcocos2d_jni.a -Wl,–no-whole-archive libcocos2d.a libandroid_platform.a -landroid -llog -lOpenSLES -lEGL -lGLESv2 -lGLESv2 libpvmp3dec.a libvorbisidec.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libwebsockets.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libssl.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/v8/libinspector.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libfreetype.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libjpeg.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libpng.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libuv.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libwebp.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/v8/libv8_monolith.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libz.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libglslang.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libOGLCompiler.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libOSDependent.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libSPIRV.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libglslang-default-resource-limits.a -latomic -lm && cd .”
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPICdefined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by chacha-armv8.o:(.text+0x20) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by poly1305-armv8.o:(.text+0x9A0) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by sha1-armv8.o:(.text+0x1240) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by sha256-armv8.o:(.text+0xF48) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by sha512-armv8.o:(.text+0x10C8) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
-
Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:instantapp:externalNativeBuildRelease’.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:207)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:205)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:186)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:409)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:399)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:94)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:356)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: org.gradle.internal.UncheckedException: Build command failed.
Error while executing process D:\WorkTool\android\SDK\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C E:\work\cocos\NewProject\build\android-001\proj\build\cmake\release\arm64-v8a cocos}
ninja: Entering directory `E:\work\cocos\NewProject\build\android-001\proj\build\cmake\release\arm64-v8a’
[1/1] Linking CXX shared library E:\work\cocos\NewProject\build\android-001\proj\build\instantapp\intermediates\cmake\release\obj\arm64-v8a\libcocos.so
FAILED: E:/work/cocos/NewProject/build/android-001/proj/build/instantapp/intermediates/cmake/release/obj/arm64-v8a/libcocos.so
cmd.exe /C “cd . && D:\WorkTool\android\SDK\ndk\22.1.7171670\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android21 --gcc-toolchain=D:/WorkTool/android/SDK/ndk/22.1.7171670/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/WorkTool/android/SDK/ndk/22.1.7171670/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -frtti -fexceptions -fsigned-char -DANDROID_INSTANT=1 -O2 -DNDEBUG -Wl,–exclude-libs,libgcc.a -Wl,–exclude-libs,libgcc_real.a -Wl,–exclude-libs,libatomic.a -static-libstdc++ -Wl,–build-id=sha1 -Wl,–no-rosegment -Wl,–fatal-warnings -Wl,–no-undefined -Qunused-arguments -shared -Wl,-soname,libcocos.so -o E:\work\cocos\NewProject\build\android-001\proj\build\instantapp\intermediates\cmake\release\obj\arm64-v8a\libcocos.so CMakeFiles/cocos.dir/E_/work/cocos/NewProject/native/engine/common/Classes/Game.cpp.o CMakeFiles/cocos.dir/jni/main.cpp.o CMakeFiles/cocos.dir/E_/work/cocos/NewProject/native/engine/common/Classes/jsb_module_register.cpp.o -Wl,–whole-archive libcocos2d_jni.a -Wl,–no-whole-archive libcocos2d.a libandroid_platform.a -landroid -llog -lOpenSLES -lEGL -lGLESv2 -lGLESv2 libpvmp3dec.a libvorbisidec.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libwebsockets.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libssl.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/v8/libinspector.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libfreetype.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libjpeg.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libpng.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libuv.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libwebp.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/v8/libv8_monolith.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libz.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libglslang.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libOGLCompiler.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libOSDependent.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libSPIRV.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libglslang-default-resource-limits.a -latomic -lm && cd .”
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by chacha-armv8.o:(.text+0x20) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by poly1305-armv8.o:(.text+0x9A0) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by sha1-armv8.o:(.text+0x1240) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by sha256-armv8.o:(.text+0xF48) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by sha512-armv8.o:(.text+0x10C8) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:67)
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:107)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:49)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:42)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:726)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:693)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.run(ExecuteActionsTaskExecuter.java:569)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:395)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:387)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:84)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:554)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:537)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$300(ExecuteActionsTaskExecuter.java:108)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:278)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:267)
at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$1(ExecuteStep.java:33)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:33)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:67)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:36)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:49)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:34)
at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:43)
at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)
at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)
at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:44)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:54)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:38)
at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)
at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:159)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:72)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:43)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:44)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:33)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)
at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:92)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:85)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:39)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:76)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:94)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:79)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:53)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:74)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:78)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:78)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:34)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:39)
at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:40)
at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:28)
at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:194)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:186)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:409)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:399)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:94)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:356)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: Build command failed.
Error while executing process D:\WorkTool\android\SDK\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C E:\work\cocos\NewProject\build\android-001\proj\build\cmake\release\arm64-v8a cocos}
ninja: Entering directory `E:\work\cocos\NewProject\build\android-001\proj\build\cmake\release\arm64-v8a’
[1/1] Linking CXX shared library E:\work\cocos\NewProject\build\android-001\proj\build\instantapp\intermediates\cmake\release\obj\arm64-v8a\libcocos.so
FAILED: E:/work/cocos/NewProject/build/android-001/proj/build/instantapp/intermediates/cmake/release/obj/arm64-v8a/libcocos.so
cmd.exe /C “cd . && D:\WorkTool\android\SDK\ndk\22.1.7171670\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android21 --gcc-toolchain=D:/WorkTool/android/SDK/ndk/22.1.7171670/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/WorkTool/android/SDK/ndk/22.1.7171670/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -frtti -fexceptions -fsigned-char -DANDROID_INSTANT=1 -O2 -DNDEBUG -Wl,–exclude-libs,libgcc.a -Wl,–exclude-libs,libgcc_real.a -Wl,–exclude-libs,libatomic.a -static-libstdc++ -Wl,–build-id=sha1 -Wl,–no-rosegment -Wl,–fatal-warnings -Wl,–no-undefined -Qunused-arguments -shared -Wl,-soname,libcocos.so -o E:\work\cocos\NewProject\build\android-001\proj\build\instantapp\intermediates\cmake\release\obj\arm64-v8a\libcocos.so CMakeFiles/cocos.dir/E_/work/cocos/NewProject/native/engine/common/Classes/Game.cpp.o CMakeFiles/cocos.dir/jni/main.cpp.o CMakeFiles/cocos.dir/E_/work/cocos/NewProject/native/engine/common/Classes/jsb_module_register.cpp.o -Wl,–whole-archive libcocos2d_jni.a -Wl,–no-whole-archive libcocos2d.a libandroid_platform.a -landroid -llog -lOpenSLES -lEGL -lGLESv2 -lGLESv2 libpvmp3dec.a libvorbisidec.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libwebsockets.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libssl.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/v8/libinspector.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libfreetype.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libjpeg.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libpng.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libuv.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libwebp.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/v8/libv8_monolith.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libz.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libglslang.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libOGLCompiler.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libOSDependent.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libSPIRV.a D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/glslang/libglslang-default-resource-limits.a -latomic -lm && cd .”
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by chacha-armv8.o:(.text+0x20) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by poly1305-armv8.o:(.text+0x9A0) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by sha1-armv8.o:(.text+0x1240) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by sha256-armv8.o:(.text+0xF48) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol OPENSSL_armcap_P; recompile with -fPIC
defined in D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a(armcap.o)
referenced by sha512-armv8.o:(.text+0x10C8) in archive D:/WorkTool/CocosDashboard/resources/.editors/Creator/3.0.0/resources/resources/3d/cocos2d-x-lite/external/cmake/…/android/arm64-v8a/libcrypto.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
at com.android.build.gradle.internal.cxx.process.ProcessOutputJunction.execute(ProcessOutputJunction.kt:91)
at com.android.build.gradle.internal.cxx.process.ProcessOutputJunction.execute(ProcessOutputJunction.kt:132)
at com.android.build.gradle.tasks.ExternalNativeBuildTask.executeProcessBatch(ExternalNativeBuildTask.kt:458)
at com.android.build.gradle.tasks.ExternalNativeBuildTask.buildImpl(ExternalNativeBuildTask.kt:198)
at com.android.build.gradle.tasks.ExternalNativeBuildTask.doTaskAction(ExternalNativeBuildTask.kt:123)
at com.android.build.gradle.internal.tasks.UnsafeOutputsTask$taskAction$$inlined$recordTaskAction$1.invoke(AndroidVariantTask.kt:73)
at com.android.build.gradle.internal.tasks.UnsafeOutputsTask$taskAction$$inlined$recordTaskAction$1.invoke(AndroidVariantTask.kt:34)
at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:91)
at com.android.build.gradle.internal.tasks.UnsafeOutputsTask.taskAction(UnsafeOutputsTask.kt:56)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)
... 91 more
- Get more help at https://help.gradle.org
BUILD FAILED in 2s
37 actionable tasks: 5 executed, 32 up-to-date
- 之前哪个版本是正常的:
- 手机型号:
- 手机浏览器:
- 编辑器操作系统:
- 重现概率: 100%
android studio 版本是4.1 gradle版本是6.5.1
vs版本是2017 python为2.7.18
cmake版本是3.10.2
是不是我哪里环境有问题,或者某个工具的版本不对呀?各种查找资料搞了一天的.没法了才来问一下.
各位大哥有知道的还望不吝赐教!非常感谢!
