getting this error whilst building for android does anyone have a sollution?,getting this error whilst trying to build anyone has a solution?
Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2020.2.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\ralphael\AppData\Local\Temp\tmp68B0.tmp" -o "C:\Users\ralphael\Documents\citybuilder\apuzzling\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_71AD3212973E48A7CFF06E2BD2162BF5\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target aarch64-linux-android21 -Wl,--wrap,sigaction "C:\Program Files\Unity\Hub\Editor\2020.2.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Release\StaticLibs\arm64-v8a\baselib.a" -llog -rdynamic -fuse-ld=bfd.exe
C:/Users/ralphael/Documents/citybuilder/apuzzling/Library/il2cpp_android_arm64-v8a/il2cpp_cache/75B05C42C1A9365F511C0E7DF16D5481.o: In function `CanvasJSWrapper_init_m94C5B8973CFFF47C9E70ADADD383A87825486219`:
C:\Users\ralphael\Documents\citybuilder\apuzzling\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:426: undefined reference to `init`
C:/Users/ralphael/Documents/citybuilder/apuzzling/Library/il2cpp_android_arm64-v8a/il2cpp_cache/75B05C42C1A9365F511C0E7DF16D5481.o: In function `CanvasJSWrapper_Logout_m0252CFE916C855AEE3F553270B2090A9C5E0A4A8`:
C:\Users\ralphael\Documents\citybuilder\apuzzling\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:452: undefined reference to `logout`
C:/Users/ralphael/Documents/citybuilder/apuzzling/Library/il2cpp_android_arm64-v8a/il2cpp_cache/75B05C42C1A9365F511C0E7DF16D5481.o: In function `CanvasJSWrapper_logout_m43363262FC702845AAB3D6D811507358BBB5FCE8`:
C:\Users\ralphael\Documents\citybuilder\apuzzling\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:452: undefined reference to `logout`
C:/Users/ralphael/Documents/citybuilder/apuzzling/Library/il2cpp_android_arm64-v8a/il2cpp_cache/75B05C42C1A9365F511C0E7DF16D5481.o: In function `CanvasJSWrapper_ActivateApp_m67954CB1527026719ED0E2E535F298A74B297E5C`:
C:\Users\ralphael\Documents\citybuilder\apuzzling\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:461: undefined reference to `activateApp`
C:/Users/ralphael/Documents/citybuilder/apuzzling/Library/il2cpp_android_arm64-v8a/il2cpp_cache/75B05C42C1A9365F511C0E7DF16D5481.o: In function `CanvasJSWrapper_activateApp_mC2B19B302DD919AE48340D07C19BF90F8CEF5F04`:
C:\Users\ralphael\Documents\citybuilder\apuzzling\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:461: undefined reference to `activateApp`
C:/Users/ralphael/Documents/citybuilder/apuzzling/Library/il2cpp_android_arm64-v8a/il2cpp_cache/75B05C42C1A9365F511C0E7DF16D5481.o: In function `CanvasJSWrapper_logPurchase_mB3887163B61586FCFDCF382866865C059E90CD6C`:
C:\Users\ralphael\Documents\citybuilder\apuzzling\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:483: undefined reference to `logPurchase`
C:/Users/ralphael/Documents/citybuilder/apuzzling/Library/il2cpp_android_arm64-v8a/il2cpp_cache/75B05C42C1A9365F511C0E7DF16D5481.o: In function `CanvasJSWrapper_ui_m4C248B4EA95C7F89404AEF6DF5D23055F7069EB5`:
C:\Users\ralphael\Documents\citybuilder\apuzzling\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:512: undefined reference to `ui`
C:/Users/ralphael/Documents/citybuilder/apuzzling/Library/il2cpp_android_arm64-v8a/il2cpp_cache/75B05C42C1A9365F511C0E7DF16D5481.o: In function `CanvasJSWrapper_InitScreenPosition_mAB527E22421E7AD6283DE5DD5ABB9AFD75DD6E28`:
C:\Users\ralphael\Documents\citybuilder\apuzzling\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:533: undefined reference to `initScreenPosition`
C:/Users/ralphael/Documents/citybuilder/apuzzling/Library/il2cpp_android_arm64-v8a/il2cpp_cache/75B05C42C1A9365F511C0E7DF16D5481.o: In function `CanvasJSWrapper_initScreenPosition_mBB85115BEB9A723EA2286135F620251D9893CB8F`:
C:\Users\ralphael\Documents\citybuilder\apuzzling\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:533: undefined reference to `initScreenPosition`
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection`1 matchedAssemblyMethodSourceFiles)
at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions, Boolean throwExceptions)
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String generatedCppOutputDirectory) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.Boolean platformSupportsManagedDebugging) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditorInternal.IL2CPPBuilder.Run () (at <433cbae83977409887e43d50043210d2>:0)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8554da968bee4c58879b31c6b5feb9f3>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8554da968bee4c58879b31c6b5feb9f3>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <8554da968bee4c58879b31c6b5feb9f3>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <8554da968bee4c58879b31c6b5feb9f3>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <433cbae83977409887e43d50043210d2>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
You haven't provided much information and no proof of research whatsoever.
Have you tried another version of Unity?
Have you tried reinstalling the Android NDK?
sorry for the late response. Im new to this forum never used it before. I switched unity versions and reinstalled NDK about five times im not exaggerating on that part. if theres more information that i need to provide let me know.
Your answer
Follow this Question
Related Questions
CommandInvokationFailure: Unable to merge android manifests. ,Unable to merge android manifest Error 0 Answers
How would you make a system similar to the "shadow cascade splits" in urp. 0 Answers
Slow and laggy objects loading 0 Answers
How to make script remember a counter and display an ad every 5th time? 1 Answer
How to Stop One-way WallJump? 0 Answers