Buliding Android Game | Exception - il2cpp.exe did not run properly
I am novice in Unity and trying to build my Android game for Google Play with IL2CPP.
I unsuccessfully tried a lot of solutions from the internet. Changed paths for NDK and JDK, reinstall NDK and JDK versions, updated my Unity, builded from another PC, lauched Hub and il2cpp as administrator, tried to compile with only ARMv64 and ARMv7+ARMv64 .
Any way the error appears over and over again.
I would be grateful if someone could suggest a solution
This is my Player settings: https://prnt.sc/10dq3of
Console window https://prnt.sc/10dq0mr
and error:
Exception: C:\Program Files\Unity\Hub\Editor\2019.4.21f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!
Failed running "C:\Program Files\Unity\Hub\Editor\2019.4.21f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe" --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARM64" --configuration="Release" --outputpath="C:\UnityProjects\EasyQuizyNew401\Temp\StagingArea\assets\bin\Data\Native\arm64-v8a\libil2cpp.so" --cachedirectory="C:\UnityProjects\EasyQuizyNew401\Assets..\Library\il2cpp_android_arm64-v8a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.4.21f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.4.21f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/ndk" --incremental-g-c-time-slice=3 --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.4.21f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=C:/UnityProjects/EasyQuizyNew401/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=C:/UnityProjects/EasyQuizyNew401/Temp/StagingArea/Il2Cpp/il2cppOutput
stdout: Building libil2cpp.so with AndroidToolChain Output directory: C:\UnityProjects\EasyQuizyNew401\Temp\StagingArea\assets\bin\Data\Native\arm64-v8a Cache directory: C:\UnityProjects\EasyQuizyNew401\Library\il2cpp_android_arm64-v8a\il2cpp_cache ObjectFiles: 218 of which compiled: 218 Time Compile: 10446 milliseconds Il2CppAttributes.cpp Time Compile: 8741 milliseconds Lump_libil2cpp_vm.cpp Time Compile: 8657 milliseconds Il2CppInvokerTable.cpp Time Compile: 7515 milliseconds Unity.TextMeshPro2.cpp Time Compile: 6834 milliseconds Unity.TextMeshPro3.cpp Time Compile: 6044 milliseconds Generics1.cpp Time Compile: 5836 milliseconds Lump_libil2cpp_icalls.cpp Time Compile: 5560 milliseconds Generics2.cpp Time Compile: 5529 milliseconds Sirenix.Serialization2.cpp Time Compile: 5389 milliseconds Sirenix.Serialization.cpp Total compilation time: 40740 milliseconds. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\ndk\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\amoho\AppData\Local\Temp\tmp9262.tmp" -o "C:\UnityProjects\EasyQuizyNew401\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_B6B6676083CCD8D8D4E88F3F042F157C\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 -llog -rdynamic -fuse-ld=bfd.exe
C:/UnityProjects/EasyQuizyNew401/Library/il2cpp_android_arm64-v8a/il2cpp_cache/09A4AEA9E687686FB9A8F5E3DA366D83.o: In function MainMenu_openPage_m514055699073E5D4A9ADB33BDC52A9D04C5AB2B0': C:\UnityProjects\EasyQuizyNew401\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass1.cpp:27144: undefined reference to
openPage' C:\UnityProjects\EasyQuizyNew401\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass1.cpp:27144: undefined reference to openPage' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) � Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet
1 objectFiles, CppToolChainContext toolChainContext) � Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) � il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies) � il2cpp.Program.Run(String[] args, Boolean setInvariantCulture) � il2cpp.Program.Main(String[] args) stderr:
����ࠡ�⠭��� �᪫�祭��: Unity.IL2CPP.Building.BuilderFailedException: C:\ndk\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\amoho\AppData\Local\Temp\tmp9262.tmp" -o "C:\UnityProjects\EasyQuizyNew401\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_B6B6676083CCD8D8D4E88F3F042F157C\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 -llog -rdynamic -fuse-ld=bfd.exe
C:/UnityProjects/EasyQuizyNew401/Library/il2cpp_android_arm64-v8a/il2cpp_cache/09A4AEA9E687686FB9A8F5E3DA366D83.o: In function MainMenu_openPage_m514055699073E5D4A9ADB33BDC52A9D04C5AB2B0': C:\UnityProjects\EasyQuizyNew401\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass1.cpp:27144: undefined reference to
openPage' C:\UnityProjects\EasyQuizyNew401\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass1.cpp:27144: undefined reference to openPage' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) � Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet
1 objectFiles, CppToolChainContext toolChainContext) � Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) � il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies) � il2cpp.Program.Run(String[] args, Boolean setInvariantCulture) � il2cpp.Program.Main(String[] args)
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at :0) UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at :0) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at :0) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at :0) UnityEditorInternal.IL2CPPBuilder.Run () (at :0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at :0) UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :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 :0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :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 :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Thank you!
Your answer
Follow this Question
Related Questions
build with IL2CPP error unity 4.6.9 while making iOS build 1 Answer
Android app not building after switching to il2cpp 0 Answers
Assertion Fail in elf32-arm.c:7827 when building for Android with IL2CPP 1 Answer
IL2CPP did not run probbably,IL2CPP Did not run probbably 0 Answers
Loading scene on android does not work.,Loading scenes on Android does not work. 1 Answer