Search Unity

Build - IL2CPP errors - Please, how fix it?

Discussion in 'Android' started by Nakaii, Sep 2, 2017.

  1. Ballistic_GMD

    Ballistic_GMD

    Joined:
    Feb 5, 2019
    Posts:
    20
    Solved by connecting to the Internet and building 3 times until all files have been downloaded.
     
  2. GameSurf

    GameSurf

    Joined:
    Aug 4, 2018
    Posts:
    5
    Hi!
    I cant build my project. Can anyone help? 2 Errors

    ERROR1

    Failed running C:\Program Files\Unity\Hub\Editor\2017.4.35f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Users\freem\Documents\Mini Golf Strike\Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\freem\Documents\Mini Golf Strike\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2017.4.35f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2017.4.35f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Users/freem/Documents/android-ndk-r13b" --map-file-parser="C:\Program Files\Unity\Hub\Editor\2017.4.35f1\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --assembly="C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll" --assembly="C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.UI.dll" --assembly="C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\assets\bin\Data\Managed\DOTween.dll" --assembly="C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Analytics.dll" --assembly="C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dll" --generatedcppdir="C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain.
    Output directory: C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 533 of which compiled: 0
    Total compilation time: 1267 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\freem\Documents\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\freem\AppData\Local\Temp\tmp90BC.tmp" -o "C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_9597B0A4B97FCF2E8F77DC7E7AA73337\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\freem\Documents\android-ndk-r13b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\freem\Documents\android-ndk-r13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\freem\Documents\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_9597B0A4B97FCF2E8F77DC7E7AA73337\libil2cpp.map" -rdynamic -fPIE -pie -fuse-ld=bfd.exe

    clang++.exe: warning: argument unused during compilation: '-pie'
    C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\512DF3793BE8E1F8A5734F26C8C65185.o: In function `GameCenterHelper_resetAchievements_m3425185854':
    C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:28623: undefined reference to `resetAchievements'
    C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\512DF3793BE8E1F8A5734F26C8C65185.o: In function `GameCenterHelper_submitAchievement_m1438707106':
    C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:28637: undefined reference to `submitAchievement'
    C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\512DF3793BE8E1F8A5734F26C8C65185.o: In function `GameCenterHelper_showAchievements_m1028281867':
    C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:28651: undefined reference to `showAchievements'
    C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:28651: undefined reference to `showAchievements'
    C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\512DF3793BE8E1F8A5734F26C8C65185.o: In function `GameCenterHelper_resetAchievements_m3425185854':
    C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:28623: undefined reference to `resetAchievements'
    C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\512DF3793BE8E1F8A5734F26C8C65185.o: In function `GameCenterHelper_submitAchievement_m1438707106':
    C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:28637: undefined reference to `submitAchievement'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    konum: Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
    konum: Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    konum: Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner(CppProgramBuilder builder, IBuildStatistics& statistics)
    konum: il2cpp.Program.DoRun(String[] args)
    konum: il2cpp.Program.Run(String[] args)
    konum: il2cpp.Program.Main(String[] args)
    stderr:

    Islenmeyen ™zel Durum: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\freem\Documents\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\freem\AppData\Local\Temp\tmp90BC.tmp" -o "C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_9597B0A4B97FCF2E8F77DC7E7AA73337\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\freem\Documents\android-ndk-r13b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\freem\Documents\android-ndk-r13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\freem\Documents\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_9597B0A4B97FCF2E8F77DC7E7AA73337\libil2cpp.map" -rdynamic -fPIE -pie -fuse-ld=bfd.exe

    clang++.exe: warning: argument unused during compilation: '-pie'
    C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\512DF3793BE8E1F8A5734F26C8C65185.o: In function `GameCenterHelper_resetAchievements_m3425185854':
    C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:28623: undefined reference to `resetAchievements'
    C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\512DF3793BE8E1F8A5734F26C8C65185.o: In function `GameCenterHelper_submitAchievement_m1438707106':
    C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:28637: undefined reference to `submitAchievement'
    C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\512DF3793BE8E1F8A5734F26C8C65185.o: In function `GameCenterHelper_showAchievements_m1028281867':
    C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:28651: undefined reference to `showAchievements'
    C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:28651: undefined reference to `showAchievements'
    C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\512DF3793BE8E1F8A5734F26C8C65185.o: In function `GameCenterHelper_resetAchievements_m3425185854':
    C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:28623: undefined reference to `resetAchievements'
    C:\Users\freem\Documents\Mini Golf Strike\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\512DF3793BE8E1F8A5734F26C8C65185.o: In function `GameCenterHelper_submitAchievement_m1438707106':
    C:\Users\freem\Documents\Mini Golf Strike\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:28637: undefined reference to `submitAchievement'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    konum: Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
    konum: Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    konum: Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner(CppProgramBuilder builder, IBuildStatistics& statistics)
    konum: il2cpp.Program.DoRun(String[] args)
    konum: il2cpp.Program.Run(String[] args)
    konum: il2cpp.Program.Main(String[] args)

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:336)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection`1, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:317)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:160)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    ERROR 2


    Exception: C:\Program Files\Unity\Hub\Editor\2017.4.35f1\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1 setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1 arguments, System.Action`1 setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:336)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection`1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:317)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:160)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:272)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,561
    This failure occurs because the code in the project has extern methods in C#. Methods marked as extern with a the [Dllimport("__Internal")] attribute must be present in a native library that is linked with the Unity player when building with the IL2CPP scripting backend.

    For example, this in this project one function which causes this issue is named: resetAchievements

    You have two options:

    1. Build a native library with all of the methods marked as extern with the [Dllimport("__Internal")] attribute for the target platform and architecture of the player. See this documentation for details about native plugins: https://docs.unity3d.com/Manual/NativePlugins.html

    2. Remove the C# code which defines this extern method. You can do that with platform dependent compilation: https://docs.unity3d.com/Manual/PlatformDependentCompilation.html
     
    GameSurf likes this.
  4. GameSurf

    GameSurf

    Joined:
    Aug 4, 2018
    Posts:
    5
    Thanks for reply. It worked!
     
    JoshPeterson likes this.
  5. egem2015

    egem2015

    Joined:
    Oct 27, 2015
    Posts:
    73
    Hi Josh

    i have a similar problem. I installed correct new ndk. But i am still getting following exceptions

    Failed running C:\Program Files\Unity\Hub\Editor\2019.2.14f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Football1\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Football1\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.2.14f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.2.14f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="D:/NdkR16b" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.2.14f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=C:/Football1/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=C:/Football1/Temp/StagingArea/Il2Cpp/il2cppOutput

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: C:\Football1\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: C:\Football1\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 195 of which compiled: 80
    Time Compile: 18452 milliseconds Il2CppAttributes.cpp
    Time Compile: 15059 milliseconds Il2CppInvokerTable.cpp
    Time Compile: 11840 milliseconds Assembly-CSharp-firstpass6.cpp
    Time Compile: 10767 milliseconds Generics7.cpp
    Time Compile: 10166 milliseconds Generics6.cpp
    Time Compile: 10157 milliseconds Assembly-CSharp3.cpp
    Time Compile: 10020 milliseconds Generics.cpp
    Time Compile: 9878 milliseconds Generics17.cpp
    Time Compile: 9657 milliseconds Generics13.cpp
    Time Compile: 9441 milliseconds Generics4.cpp
    Total compilation time: 103831 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: D:\NdkR16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\bim\AppData\Local\Temp\tmp127C.tmp" -o "C:\Football1\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_71B27AA3A355F939DE765AEEBD7D4665\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "D:\NdkR16b\platforms\android-16\arch-arm" -gcc-toolchain "D:\NdkR16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "D:\NdkR16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -latomic -llog -rdynamic -fuse-ld=gold.exe

    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29489: error: undefined reference to 'ShareOnlyText'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29529: error: undefined reference to 'ShareImgUseBytes'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29547: error: undefined reference to 'ProgressBarTweakInit'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29557: error: undefined reference to 'ProgressBarTweakStart'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29567: error: undefined reference to 'ProgressBarTweakStop'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29593: error: undefined reference to 'ShareMessageToService'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29642: error: undefined reference to 'ShareImgToService'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29675: error: undefined reference to 'WriteImgToCameraRoll'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29547: error: undefined reference to 'ProgressBarTweakInit'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29557: error: undefined reference to 'ProgressBarTweakStart'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29567: error: undefined reference to 'ProgressBarTweakStop'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29675: error: undefined reference to 'WriteImgToCameraRoll'
    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.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.Program.Main(String[] args)
    stderr:

    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: D:\NdkR16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\bim\AppData\Local\Temp\tmp127C.tmp" -o "C:\Football1\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_71B27AA3A355F939DE765AEEBD7D4665\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "D:\NdkR16b\platforms\android-16\arch-arm" -gcc-toolchain "D:\NdkR16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "D:\NdkR16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -latomic -llog -rdynamic -fuse-ld=gold.exe

    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29489: error: undefined reference to 'ShareOnlyText'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29529: error: undefined reference to 'ShareImgUseBytes'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29547: error: undefined reference to 'ProgressBarTweakInit'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29557: error: undefined reference to 'ProgressBarTweakStart'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29567: error: undefined reference to 'ProgressBarTweakStop'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29593: error: undefined reference to 'ShareMessageToService'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29642: error: undefined reference to 'ShareImgToService'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29675: error: undefined reference to 'WriteImgToCameraRoll'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29547: error: undefined reference to 'ProgressBarTweakInit'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29557: error: undefined reference to 'ProgressBarTweakStart'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29567: error: undefined reference to 'ProgressBarTweakStop'
    C:\Football1\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp-firstpass5.cpp:29675: error: undefined reference to 'WriteImgToCameraRoll'
    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.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.Program.Main(String[] args)

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:126)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:71)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:503)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:484)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

    what can be problem?

    thanks in advance.

    King Regards.
     
  6. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,561
    Please see my reply just above: https://forum.unity.com/threads/build-il2cpp-errors-please-how-fix-it.492556/page-4#post-5333640

    In this case, one of the extern methods in C# is named ShareOnlyText. If you follow the instruction in that post, you should be able to correct this.
     
  7. Ashter

    Ashter

    Joined:
    May 30, 2019
    Posts:
    8
    Hello,
    I have the same error : when I build an Empty Project every thing works fine, when I build my game this error appears !
    Failed running C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="D:\F\UnityProjects\aa\LudoCash2018\LudoCash\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\F\UnityProjects\aa\LudoCash2018\LudoCash\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="D:/Android/NDK/android-ndk-r16b-windows-x86_64/android-ndk-r16b" --map-file-parser="C:\Program Files\Unity\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="D:\F\UnityProjects\aa\LudoCash2018\LudoCash\Temp\StagingArea\assets\bin\Data\Managed" --generatedcppdir="D:\F\UnityProjects\aa\LudoCash2018\LudoCash\Temp\StagingArea\Il2Cpp\il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: D:\F\UnityProjects\aa\LudoCash2018\LudoCash\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: D:\F\UnityProjects\aa\LudoCash2018\LudoCash\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 662 of which compiled: 232
    Time Compile: 93915 milliseconds Bulk_Assembly-CSharp_4.cpp
    Time Compile: 59848 milliseconds Il2CppAttributes.cpp
    Time Compile: 32501 milliseconds Il2CppInvokerTable.cpp
    Time Compile: 26226 milliseconds Il2CppTypeDefinitions.cpp
    Time Compile: 25855 milliseconds Bulk_Unity.TextMeshPro_1.cpp
    Time Compile: 24122 milliseconds Bulk_Unity.TextMeshPro_2.cpp
    Time Compile: 23019 milliseconds Bulk_Unity.TextMeshPro_3.cpp
    Time Compile: 22983 milliseconds Bulk_Assembly-CSharp_5.cpp
    Time Compile: 22011 milliseconds Bulk_Photon3Unity3D_0.cpp
    Time Compile: 21726 milliseconds Bulk_Generics_1.cpp
    Total compilation time: 593312 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: D:\Android\NDK\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\aa\AppData\Local\Temp\tmp54F9.tmp" -o "D:\F\UnityProjects\aa\LudoCash2018\LudoCash\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_A000625DB05E1C24B205324CC39B9B63\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "D:\Android\NDK\android-ndk-r16b-windows-x86_64\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "D:\Android\NDK\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "D:\Android\NDK\android-ndk-r16b-windows-x86_64\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="D:\F\UnityProjects\aa\LudoCash2018\LudoCash\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_A000625DB05E1C24B205324CC39B9B63\libil2cpp.map" -rdynamic -fuse-ld=gold.exe

    D:\Android\NDK\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/F/UnityProjects/aa/LudoCash2018/LudoCash/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/D9592FC93105A56D68E5B5908B4B1440.o: section name section has wrong type: 2621440
    D:\Android\NDK\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: fatal error: D:/F/UnityProjects/aa/LudoCash2018/LudoCash/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/D9592FC93105A56D68E5B5908B4B1440.o: attempt to map 235802126 bytes at offset 235802126 exceeds size of file; the file may be corrupt
    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)
    مë§ il2cpp.Program.Run(String[] args)
    مë§ il2cpp.Program.Main(String[] args)
    stderr:

    ں«¢£ëںک نï© êُمںéô¤: Unity.IL2CPP.Building.BuilderFailedException: D:\Android\NDK\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\aa\AppData\Local\Temp\tmp54F9.tmp" -o "D:\F\UnityProjects\aa\LudoCash2018\LudoCash\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_A000625DB05E1C24B205324CC39B9B63\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "D:\Android\NDK\android-ndk-r16b-windows-x86_64\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "D:\Android\NDK\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "D:\Android\NDK\android-ndk-r16b-windows-x86_64\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="D:\F\UnityProjects\aa\LudoCash2018\LudoCash\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_A000625DB05E1C24B205324CC39B9B63\libil2cpp.map" -rdynamic -fuse-ld=gold.exe

    D:\Android\NDK\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/F/UnityProjects/aa/LudoCash2018/LudoCash/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/D9592FC93105A56D68E5B5908B4B1440.o: section name section has wrong type: 2621440
    D:\Android\NDK\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: fatal error: D:/F/UnityProjects/aa/LudoCash2018/LudoCash/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/D9592FC93105A56D68E5B5908B4B1440.o: attempt to map 235802126 bytes at offset 235802126 exceeds size of file; the file may be corrupt
    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)
    مë§ il2cpp.Program.Run(String[] args)
    مë§ il2cpp.Program.Main(String[] args)

    UnityEngine.DebugLogHandler:Internal_Log()
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:\buildslave\unity\build\Editor\Mono\BuildPipeline\BuildUtils.cs:128)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:\buildslave\unity\build\Editor\Mono\BuildPipeline\BuildUtils.cs:73)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:\buildslave\unity\build\Editor\Mono\BuildPipeline\Il2Cpp\IL2CPPUtils.cs:368)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:\buildslave\unity\build\Editor\Mono\BuildPipeline\Il2Cpp\IL2CPPUtils.cs:349)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:\buildslave\unity\build\Editor\Mono\BuildPipeline\Il2Cpp\IL2CPPUtils.cs:211)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:\buildslave\unity\build\Editor\Mono\BuildPipeline\Il2Cpp\IL2CPPUtils.cs:35)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp:Execute(PostProcessorContext)
    UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks(PostProcessorContext)
    UnityEditor.Android.PostProcessAndroidPlayer:postProcess(BuildTarget, String, String, String, String, String, String, BuildOptions, RuntimeClassRegistry, BuildReport)
    UnityEditor.Android.AndroidBuildPostprocessor:postProcess(BuildPostProcessArgs, BuildProperties&)
    UnityEditor.PostprocessBuildPlayer:postprocess(BuildTargetGroup, BuildTarget, String, String, String, Int32, Int32, BuildOptions, RuntimeClassRegistry, BuildReport) (at C:\buildslave\unity\build\Editor\Mono\BuildPipeline\PostprocessBuildPlayer.cs:286)
    UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck()
    UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:172)
    UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:96)
    UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:907)
    UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:807)
    UnityEditor.BuildPlayerWindow:OnGUI() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:410)
    System.Reflection.MonoMethod:InternalInvoke()
    System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    System.Reflection.MethodBase:Invoke(Object, Object[])
    UnityEditor.HostView:Invoke(String, Object) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:342)
    UnityEditor.HostView:Invoke(String) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:336)
    UnityEditor.HostView:OldOnGUI() (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:129)
    UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:244)
    UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:438)
    UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent(Event) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:421)
    UnityEngine.Experimental.UIElements.IMGUIContainer:HandleEvent(EventBase) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:401)
    UnityEngine.Experimental.UIElements.EventDispatcher:processEvent(EventBase, IPanel) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:511)
    UnityEngine.Experimental.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:307)
    UnityEngine.Experimental.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\Panel.cs:176)
    UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:245)
    UnityEngine.Experimental.UIElements.UIElementsUtility:processEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:68)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\IMGUI\GUIUtility.cs:179)

    (Filename: C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs Line: 128)

    Uploading Crash Report
    Exception: C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!
    at UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x0011f] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\BuildUtils.cs:130
    at UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) [0x00063] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\BuildUtils.cs:73
    at UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) [0x0008b] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\Il2Cpp\IL2CPPUtils.cs:368
    at UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) [0x00272] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\Il2Cpp\IL2CPPUtils.cs:349
    at UnityEditorInternal.IL2CPPBuilder.Run () [0x000ba] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\Il2Cpp\IL2CPPUtils.cs:211
    at UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) [0x0001e] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\Il2Cpp\IL2CPPUtils.cs:35
    at UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x00203] in <492d67763d4d482e8616a9848b18ccab>:0
    at UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x00074] in <492d67763d4d482e8616a9848b18ccab>:0
    at 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) [0x00261] in <492d67763d4d482e8616a9848b18ccab>:0
    at UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) [0x00001] in <492d67763d4d482e8616a9848b18ccab>:0
    at 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) [0x000d9] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\PostprocessBuildPlayer.cs:286
    UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck()
    UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:172)
    UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:96)
    UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:907)
    UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:807)
    UnityEditor.BuildPlayerWindow:OnGUI() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:410)
    System.Reflection.MonoMethod:InternalInvoke()
    System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    System.Reflection.MethodBase:Invoke(Object, Object[])
    UnityEditor.HostView:Invoke(String, Object) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:342)
    UnityEditor.HostView:Invoke(String) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:336)
    UnityEditor.HostView:OldOnGUI() (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:129)
    UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:244)
    UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:438)
    UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent(Event) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:421)
    UnityEngine.Experimental.UIElements.IMGUIContainer:HandleEvent(EventBase) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:401)
    UnityEngine.Experimental.UIElements.EventDispatcher:processEvent(EventBase, IPanel) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:511)
    UnityEngine.Experimental.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:307)
    UnityEngine.Experimental.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\Panel.cs:176)
    UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:245)
    UnityEngine.Experimental.UIElements.UIElementsUtility:processEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:68)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\IMGUI\GUIUtility.cs:179)

    (Filename: <492d67763d4d482e8616a9848b18ccab> Line: 0)

    I think the error is :
    error: D:/F/UnityProjects/aa/LudoCash2018/LudoCash/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/D9592FC93105A56D68E5B5908B4B1440.o: section name section has wrong type: 2621440
    and this :
    fatal error: D:/F/UnityProjects/aa/LudoCash2018/LudoCash/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/D9592FC93105A56D68E5B5908B4B1440.o: attempt to map 235802126 bytes at offset 235802126 exceeds size of file; the file may be corrupt

    but I don't know how to fix it !

    Please help !
     
  8. LiraGilana

    LiraGilana

    Joined:
    Jan 24, 2020
    Posts:
    4
    Hello, Josh! I need to build an Android game for 64-bit devices. Please help to solve two problems, which I attached in the file.

    In the third message of the system, this appears:
    Build completed with a result of 'Succeeded'
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    I don’t know what to do, in fact there is no file.
     

    Attached Files:

  9. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,561
    It looks like some of the errors are not in English. Could you translate them for me?
     
  10. LiraGilana

    LiraGilana

    Joined:
    Jan 24, 2020
    Posts:
    4
    Гейм - is the name of the folder in which the game project folder is located
    Раздави вредителя - is the name of the project itself
     
  11. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,561
    I would recommend trying to change these paths to use only ASCII characters. This looks like a problem in the Android NDK. A few others have noticed that it does not always handle non-ASCII characters properly.
     
  12. Ashter

    Ashter

    Joined:
    May 30, 2019
    Posts:
    8
    Hi Josh ! Please, Can you help me ? I have this error when I build with il2cpp !
     
  13. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,561
    I'm unsure how to correct this issue. It might be a problem on the IL2CPP side. Is this is project you can submit with a bug report?
     
  14. Ashter

    Ashter

    Joined:
    May 30, 2019
    Posts:
    8
    Thanks for your time.OK, I will submit the bug report, could you tell me how to do that please ?
     
  15. Ashter

    Ashter

    Joined:
    May 30, 2019
    Posts:
    8
    I Finally Fixed it ! I just checked the Arm64 ONLY and un-checked ArmV7 & x86 , then build and every thing works fine !
    Although, it seems strange that I couldn't build for ArmV7 with IL2CPP ,but anyway we can build 32bit with Mono ...
     
  16. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,561
    Odd, it may still be something with the Android NDK. Can you try to build ARM64 and ARMv7, but not x86?
     
  17. LiraGilana

    LiraGilana

    Joined:
    Jan 24, 2020
    Posts:
    4
    Thank you very much I will try
     
  18. Ashter

    Ashter

    Joined:
    May 30, 2019
    Posts:
    8
    That's right ! it seems strange ! but when I tried ARM64 & ARMv7 without x86, it crashed again !!
    However when I build the Empty Project it builds successfully even with ARMv7 & x86 !
     
  19. LiraGilana

    LiraGilana

    Joined:
    Jan 24, 2020
    Posts:
    4
    I tried to create an empty project with ASCII characters, anyway there is an error, the text of which is in the attached file.
     

    Attached Files:

  20. Jeet_9811

    Jeet_9811

    Joined:
    May 6, 2014
    Posts:
    17
    I got the below error on Unity version 2019.3.0f6. With ARM64, IL2CPP settings. Can you please let me know how to solve it. I have no clue regarding this.

    IL2CPP error for type 'UnityEngine.Experimental.Rendering.RenderPipeline' in assembly '/Users/apple/Desktop/Work/Viewa/JCH Repo/VIEWA ANDROID 2019/Temp/StagingArea/assets/bin/Data/Managed/UnityEngine.dll'
    Additional information: Exception has been thrown by the target of an invocation.

    Failed running /Applications/Unity/Hub/Editor/2019.3.0f6/Unity.app/Contents/il2cpp/build/deploy/il2cppcore/il2cppcore.dll --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="/Users/apple/Desktop/Work/Viewa/JCH Repo/VIEWA ANDROID 2019/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/Users/apple/Desktop/Work/Viewa/JCH Repo/VIEWA ANDROID 2019/Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/Applications/Unity/Hub/Editor/2019.3.0f6/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/Applications/Unity/Hub/Editor/2019.3.0f6/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/Applications/Unity/Hub/Editor/2019.3.0f6/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="/Applications/Unity/Hub/Editor/2019.3.0f6/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/apple/Desktop/Work/Viewa/JCH Repo/VIEWA ANDROID 2019/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/Users/apple/Desktop/Work/Viewa/JCH Repo/VIEWA ANDROID 2019/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:
    IL2CPP error for type 'UnityEngine.Experimental.Rendering.RenderPipeline' in assembly '/Users/apple/Desktop/Work/Viewa/JCH Repo/VIEWA ANDROID 2019/Temp/StagingArea/assets/bin/Data/Managed/UnityEngine.dll'
    Additional information: Exception has been thrown by the target of an invocation.
    il2cpp.exe didn't catch exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
    at Unity.IL2CPP.ErrorInformation.set_Method(MethodDefinition value)
    at Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.Visit(MethodDefinition methodDefinition, Context context)
    at Unity.Cecil.Visitor.Visitor.Visit(EventDefinition eventDefinition, Context context)
    at Unity.Cecil.Visitor.Visitor.Visit(TypeDefinition typeDefinition, Context context)
    at Unity.Cecil.Visitor.Visitor.Visit(ModuleDefinition moduleDefinition, Context context)
    at Unity.Cecil.Visitor.Visitor.Visit(AssemblyDefinition assemblyDefinition, Context context)
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at Unity.Cecil.Visitor.Visitor.Visit[T](T node, Context context)
    at Unity.IL2CPP.GenericsCollection.GenericsCollector.CollectPerAssembly(AssemblyDefinition assembly)
    at System.Linq.Enumerable.SelectIListIterator`2.MoveNext()
    at Unity.IL2CPP.GenericsCollection.GenericsCollector.MergeCollections(IEnumerable`1 collections)
    at Unity.IL2CPP.AssemblyConverter.Apply()
    at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(IEnumerable`1 assemblyDirectories, IEnumerable`1 explicitAssemblies, NPath outputDir, NPath dataFolder, NPath symbolsFolder, NPath executableAssembiesFolder, NPath monoLibFolder, NPath monoEtcFolder, NPath[] searchDirectories, String entryAssemblyName, NPath[] extraTypesFiles)
    at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)
    stderr:

    Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
    at Unity.IL2CPP.ErrorInformation.set_Method(MethodDefinition value)
    at Unity.IL2CPP.GenericsCollection.GenericContextFreeVisitor.Visit(MethodDefinition methodDefinition, Context context)
    at Unity.Cecil.Visitor.Visitor.Visit(EventDefinition eventDefinition, Context context)
    at Unity.Cecil.Visitor.Visitor.Visit(TypeDefinition typeDefinition, Context context)
    at Unity.Cecil.Visitor.Visitor.Visit(ModuleDefinition moduleDefinition, Context context)
    at Unity.Cecil.Visitor.Visitor.Visit(AssemblyDefinition assemblyDefinition, Context context)
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at Unity.Cecil.Visitor.Visitor.Visit[T](T node, Context context)
    at Unity.IL2CPP.GenericsCollection.GenericsCollector.CollectPerAssembly(AssemblyDefinition assembly)
    at System.Linq.Enumerable.SelectIListIterator`2.MoveNext()
    at Unity.IL2CPP.GenericsCollection.GenericsCollector.MergeCollections(IEnumerable`1 collections)
    at Unity.IL2CPP.AssemblyConverter.Apply()
    at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(IEnumerable`1 assemblyDirectories, IEnumerable`1 explicitAssemblies, NPath outputDir, NPath dataFolder, NPath symbolsFolder, NPath executableAssembiesFolder, NPath monoLibFolder, NPath monoEtcFolder, NPath[] searchDirectories, String entryAssemblyName, NPath[] extraTypesFiles)
    at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)
    at Program.Main(String[] args) in /Users/builduser/buildslave/unity/build/External/il2cpp/il2cpp/il2cppcore/Program.cs:line 24

    #0 GetStacktrace(int)
    #1 DebugStringToFile(DebugStringToFileData const&)
    #2 DebugLogHandler::Internal_Log(LogType, LogOption, core::basic_string<char, core::StringStorageDefault<char> >, Object*)
    #3 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque, ScriptingBackendNativeObjectPtrOpaque)
    #4 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    #5 (Mono JIT Code) [BuildUtils.cs:77] UnityEditorInternal.Runner:RunNetCoreProgram (string,string,string,UnityEditor.Scripting.Compilers.CompilerOutputParserBase,System.Action`1<System.Diagnostics.ProcessStartInfo>)

    -----------------------------------------------------------------------------------------------
    Exception: /Applications/Unity/Hub/Editor/2019.3.0f6/Unity.app/Contents/il2cpp/build/deploy/il2cppcore/il2cppcore.dll did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    UnityEditorInternal.Runner.RunNetCoreProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:77)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:517)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:500)
    UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:337)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:65)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <501fdf9059b849939e0297808b46ab08>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <501fdf9059b849939e0297808b46ab08>: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 <501fdf9059b849939e0297808b46ab08>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <501fdf9059b849939e0297808b46ab08>: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 /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:340)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)
     
  21. vegasmourad

    vegasmourad

    Joined:
    Nov 22, 2018
    Posts:
    1
    I got the below error on Unity version 2018.4.15f1 I have (tried other versions of unity but i still got the same error) . With ARM64, IL2CPP settings. Can you please help me with this


    Failed running /Applications/Unity/Hub/Editor/2018.4.15f1/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="/Users/mac/Desktop/Marouan/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/Users/mac/Desktop/Marouan/Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/Applications/Unity/Hub/Editor/2018.4.15f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/Applications/Unity/Hub/Editor/2018.4.15f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/Users/mac/Desktop/android-ndk-r16b" --map-file-parser="/Applications/Unity/Hub/Editor/2018.4.15f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/mac/Desktop/Marouan/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/Users/mac/Desktop/Marouan/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: /Users/mac/Desktop/Marouan/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a
    Cache directory: /Users/mac/Desktop/Marouan/Library/il2cpp_android_armeabi-v7a/il2cpp_cache
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException:

    Invocation was: Executable: /Users/mac/Desktop/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
    Arguments: -DNET_4_0 -DUNITY_AOT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/Applications/Unity/Hub/Editor/2018.4.15f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2018.4.15f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/Applications/Unity/Hub/Editor/2018.4.15f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2018.4.15f1/Unity.app/Contents/il2cpp/external/boehmgc/include" -I"/Users/mac/Desktop/Marouan/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -I"/Users/mac/Desktop/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include" -I"/Users/mac/Desktop/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward" -I"/Users/mac/Desktop/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include" -c -g -DNDEBUG -funwind-tables -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++98 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fPIC -Os --sysroot "/Users/mac/Desktop/android-ndk-r16b/sysroot" -gcc-toolchain "/Users/mac/Desktop/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64" -target armv7-none-linux-androideabi -isystem "/Users/mac/Desktop/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi" -D__ANDROID_API__=16 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/Users/mac/Desktop/Marouan/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppTypeDefinitions.cpp" -o "/Users/mac/Desktop/Marouan/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/5D4B62514078DEB8BB802E6443503884.o"

    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.Program.Main(String[] args)
    stderr:

    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException:

    Invocation was: Executable: /Users/mac/Desktop/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
    Arguments: -DNET_4_0 -DUNITY_AOT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/Applications/Unity/Hub/Editor/2018.4.15f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2018.4.15f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/Applications/Unity/Hub/Editor/2018.4.15f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2018.4.15f1/Unity.app/Contents/il2cpp/external/boehmgc/include" -I"/Users/mac/Desktop/Marouan/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -I"/Users/mac/Desktop/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include" -I"/Users/mac/Desktop/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward" -I"/Users/mac/Desktop/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include" -c -g -DNDEBUG -funwind-tables -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++98 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fPIC -Os --sysroot "/Users/mac/Desktop/android-ndk-r16b/sysroot" -gcc-toolchain "/Users/mac/Desktop/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64" -target armv7-none-linux-androideabi -isystem "/Users/mac/Desktop/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi" -D__ANDROID_API__=16 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/Users/mac/Desktop/Marouan/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppTypeDefinitions.cpp" -o "/Users/mac/Desktop/Marouan/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/5D4B62514078DEB8BB802E6443503884.o"

    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.Program.Main(String[] args)
    at Program.Main(String[] args)

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    UnityEditorInternal.Runner:RunNetCoreProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:79)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:368)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:351)
    UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

    __________________________________________________________________________________________________________________________________________________________________________________________________
    Exception: /Applications/Unity/Hub/Editor/2018.4.15f1/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130)
    UnityEditorInternal.Runner.RunNetCoreProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:79)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:368)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:351)
    UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f92457847c324e90907abe57dde6951d>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f92457847c324e90907abe57dde6951d>: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 <f92457847c324e90907abe57dde6951d>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <f92457847c324e90907abe57dde6951d>: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 /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:286)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
     
  22. Jeet_9811

    Jeet_9811

    Joined:
    May 6, 2014
    Posts:
    17
    Hi Guys,
    After spending a hell lot of time at the end I solved this error by upgrading Vuforia version to the latest. If any case you are using Vuforia then please upgrade it to the latest version from package manager.

    Also if you doesn't have Vuforia then you may try to upgrade other plugins in your project and see which will fix this :)

    As this is mostly related to the native library that is linked with the Unity player used by the 3rd party plugins and other plugins it will be better to upgrade the installed plugins one by one and see which will fix this.
     
    Last edited: Feb 21, 2020
    MicahShaneTaylor likes this.
  23. Hamza3301

    Hamza3301

    Joined:
    May 23, 2019
    Posts:
    3
    build fails..!! after converting to 64... any one has the solution for this???


    Failed running /Applications/untitled folder/2019.1.2f1/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="legacyunity" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="/Applications/Projects/COD_RollingStudio/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/Applications/Projects/COD_RollingStudio/Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/Applications/untitled folder/2019.1.2f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/Applications/untitled folder/2019.1.2f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/Applications/untitled folder/2019.1.2f1/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="/Applications/untitled folder/2019.1.2f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Applications/Projects/COD_RollingStudio/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/Applications/Projects/COD_RollingStudio/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:
    il2cpp.exe didn't catch exception: System.Exception: Android NDK r13b or newer not detected at '/Applications/untitled folder/2019.1.2f1/PlaybackEngines/AndroidPlayer/NDK'.
    at Unity.IL2CPP.Building.ToolChains.Android.AndroidNDKUtilities..ctor(NPath ndkRootPath, Architecture architecture, Boolean useDependenciesToolChain)
    at Unity.IL2CPP.Building.ToolChains.AndroidToolChain..ctor(Architecture architecture, BuildConfiguration buildConfiguration, Boolean treatWarningsAsErrors, Boolean assemblyOutput, Boolean useDependenciesToolChain, NPath toolchainPath)
    at Unity.IL2CPP.Building.Platforms.AndroidPlatformSupport.MakeCppToolChain(BuildingOptions buildingOptions)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.Program.Main(String[] args)
    stderr:

    Unhandled Exception: System.Exception: Android NDK r13b or newer not detected at '/Applications/untitled folder/2019.1.2f1/PlaybackEngines/AndroidPlayer/NDK'.
    at Unity.IL2CPP.Building.ToolChains.Android.AndroidNDKUtilities..ctor(NPath ndkRootPath, Architecture architecture, Boolean useDependenciesToolChain)
    at Unity.IL2CPP.Building.ToolChains.AndroidToolChain..ctor(Architecture architecture, BuildConfiguration buildConfiguration, Boolean treatWarningsAsErrors, Boolean assemblyOutput, Boolean useDependenciesToolChain, NPath toolchainPath)
    at Unity.IL2CPP.Building.Platforms.AndroidPlatformSupport.MakeCppToolChain(BuildingOptions buildingOptions)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.Program.Main(String[] args)
    at Program.Main(String[] args)

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    UnityEditorInternal.Runner:RunNetCoreProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:79)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:494)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)
    UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  24. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    772
    This is your error. Have you installed NDK and SDK using Unity Hub? Check the directory mentioned in the error, are NDK files in that directory? If there is just a subdirectory inside named ndk-something, then you have to move files out of that directory into `/Applications/untitled folder/2019.1.2f1/PlaybackEngines/AndroidPlayer/NDK`.
     
  25. praveenydv07

    praveenydv07

    Joined:
    Feb 21, 2020
    Posts:
    1
    When I am building my game using mono. It is working fine.
    But for IL2CPP compiling it is giving this error.



    ]Failed running
    /home/praveen/Unity/Hub/Editor/2019.3.1f1/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="ARMv7" --configuration="Release" --outputpath="/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/home/praveen/UnityProjects/Enemy Hunter/Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r19" --profiler-report --map-file-parser="/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/Tools/MapFileParser/MapFileParser" --directory="/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: /home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a
    Cache directory: /home/praveen/UnityProjects/Enemy Hunter/Library/il2cpp_android_armeabi-v7a/il2cpp_cache
    il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: ApplicationName='/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r19/toolchains/llvm/prebuilt/linux-x86_64/bin/clang', CommandLine='-DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/libil2cpp" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/libil2cpp" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/external/xxHash" -I"/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppMetadataUsage.c" -o "/home/praveen/UnityProjects/Enemy Hunter/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/66F1AD10E75650BAA8B35C1454A1B7B7.o"', CurrentDirectory='', Native error= Access denied
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <ae22a4e8f83c41d69684ae7f557133d9>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <ae22a4e8f83c41d69684ae7f557133d9>:0
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.Execute (Unity.IL2CPP.Shell+ExecuteArgs executeArgs, Unity.IL2CPP.Shell+IExecuteController controller) [0x000d6] in <8051fc7b7def43668b61c2a73813b907>:0
    at Unity.IL2CPP.Building.BuildShell.Execute (Unity.IL2CPP.Shell+ExecuteArgs args) [0x00027] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.CompilationInvocation.Execute () [0x00007] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.IntermediateObjectFileCompilationData data) [0x00053] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[D,T].<>m__0 (System.Object o) [0x00032] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    --- End of inner exception stack trace ---
    at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T] (D[] data, System.Func`2[T,TResult] action) [0x00118] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles (System.Collections.Generic.IEnumerable`1[T] sourceFilesToCompile, Unity.IL2CPP.Building.Statistics.IBuildStatisticsCollector statisticsCollector) [0x0015b] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00206] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00001] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at il2cpp.Program.DoRun (System.String[] args, System.Collections.Generic.List`1[T] foundAssemblies) [0x005b5] in <b2a2e6a90711435a98a53b1506c78efc>:0
    at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00042] in <b2a2e6a90711435a98a53b1506c78efc>:0
    at il2cpp.Program.Main (System.String[] args) [0x00002] in <b2a2e6a90711435a98a53b1506c78efc>:0
    ---> (Inner Exception #0) System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r19/toolchains/llvm/prebuilt/linux-x86_64/bin/clang', CommandLine='-DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/libil2cpp" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/libil2cpp" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/external/xxHash" -I"/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppMetadataUsage.c" -o "/home/praveen/UnityProjects/Enemy Hunter/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/66F1AD10E75650BAA8B35C1454A1B7B7.o"', CurrentDirectory='', Native error= Access denied
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <ae22a4e8f83c41d69684ae7f557133d9>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <ae22a4e8f83c41d69684ae7f557133d9>:0
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.Execute (Unity.IL2CPP.Shell+ExecuteArgs executeArgs, Unity.IL2CPP.Shell+IExecuteController controller) [0x000d6] in <8051fc7b7def43668b61c2a73813b907>:0
    at Unity.IL2CPP.Building.BuildShell.Execute (Unity.IL2CPP.Shell+ExecuteArgs args) [0x00027] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.CompilationInvocation.Execute () [0x00007] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.IntermediateObjectFileCompilationData data) [0x00053] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[D,T].<>m__0 (System.Object o) [0x00032] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0 <---

    ---> (Inner Exception #1) System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r19/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++', CommandLine='-DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/libil2cpp" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/libil2cpp" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/external/xxHash" -I"/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -stdlib=libc++ -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/Il2Cpp/il2cppOutput/mscorlib3.cpp" -o "/home/praveen/UnityProjects/Enemy Hunter/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/6C77B7996B0D28A1FC0E86BEAB0BF5AA.o"', CurrentDirectory='', Native error= Access denied
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <ae22a4e8f83c41d69684ae7f557133d9>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <ae22a4e8f83c41d69684ae7f557133d9>:0
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.Execute (Unity.IL2CPP.Shell+ExecuteArgs executeArgs, Unity.IL2CPP.Shell+IExecuteController controller) [0x000d6] in <8051fc7b7def43668b61c2a73813b907>:0
    at Unity.IL2CPP.Building.BuildShell.Execute (Unity.IL2CPP.Shell+ExecuteArgs args) [0x00027] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.CompilationInvocation.Execute () [0x00007] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.IntermediateObjectFileCompilationData data) [0x00053] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[D,T].<>m__0 (System.Object o) [0x00032] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0 <---

    ---> (Inner Exception #2) System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r19/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++', CommandLine='-DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/libil2cpp" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/libil2cpp" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/external/xxHash" -I"/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -stdlib=libc++ -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/Il2Cpp/il2cppOutput/UnityEngine.UI.cpp" -o "/home/praveen/UnityProjects/Enemy Hunter/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/295A49CD51AD7F7BC9608EC8037A23F0.o"', CurrentDirectory='', Native error= Access denied
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <ae22a4e8f83c41d69684ae7f557133d9>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <ae22a4e8f83c41d69684ae7f557133d9>:0
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.Execute (Unity.IL2CPP.Shell+ExecuteArgs executeArgs, Unity.IL2CPP.Shell+IExecuteController controller) [0x000d6] in <8051fc7b7def43668b61c2a73813b907>:0
    at Unity.IL2CPP.Building.BuildShell.Execute (Unity.IL2CPP.Shell+ExecuteArgs args) [0x00027] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.CompilationInvocation.Execute () [0x00007] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.IntermediateObjectFileCompilationData data) [0x00053] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[D,T].<>m__0 (System.Object o) [0x00032] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92>:0 <---

    ---> (Inner Exception #3) System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r19/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++', CommandLine='-DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/libil2cpp" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/libil2cpp" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/il2cpp/external/xxHash" -I"/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -stdlib=libc++ -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/home/praveen/UnityProjects/Enemy Hunter/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppCompilerCalculateTypeValues.cpp" -o "/home/praveen/UnityProjects/Enemy Hunter/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/78B62DCF9213EC7FBE18ABA8D58C5C38.o"', CurrentDirectory='', Native error= Access denied
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <ae22a4e8f83c41d69684ae7f557133d9>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <ae22a4e8f83c41d69684ae7f557133d9>:0
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.Execute (Unity.IL2CPP.Shell+ExecuteArgs executeArgs, Unity.IL2CPP.Shell+IExecuteController controller) [0x000d6] in <8051fc7b7def43668b61c2a73813b907>:0
    at Unity.IL2CPP.Building.BuildShell.Execute (Unity.IL2CPP.Shell+ExecuteArgs args) [0x00027] in <b0aa0abe54cf47aa8bfcecdbd7a9dd92<message truncated>[/code]
     
  26. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    772
    Check if your Android NDK tools can be accessed by your user and have executable attributes. For example check the "/home/praveen/Unity/Hub/Editor/2019.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r19/toolchains/llvm/prebuilt/linux-x86_64/bin/clang" file if your user can access it and if that file has executable attribute set. If something is not correct for it, make sure you do fixes for other binaries in NDK as well.
     
  27. vanshika1012

    vanshika1012

    Joined:
    Sep 18, 2014
    Posts:
    48
    Dealing with the same problem

    Failed running /Applications/Unity/Hub/Editor/2019.1.9f1/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="/Users/vanshikakapoor/Desktop/TheVillaCrush/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/Users/vanshikakapoor/Desktop/TheVillaCrush/Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/Applications/Unity/Hub/Editor/2019.1.9f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/Applications/Unity/Hub/Editor/2019.1.9f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/Applications/Unity/Hub/Editor/2019.1.9f1/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="/Applications/Unity/Hub/Editor/2019.1.9f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/vanshikakapoor/Desktop/TheVillaCrush/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/Users/vanshikakapoor/Desktop/TheVillaCrush/Temp/StagingArea/Il2Cpp/il2cppOutput"


    Exception: /Applications/Unity/Hub/Editor/2019.1.9f1/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll did not run properly!

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130)

    UnityEditorInternal.Runner.RunNetCoreProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:79)

    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:494)

    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)

    UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)

    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)

    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <1a10f9035b6b403994c99e5b653643c6>:0)

    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <1a10f9035b6b403994c99e5b653643c6>: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 <1a10f9035b6b403994c99e5b653643c6>:0)

    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <1a10f9035b6b403994c99e5b653643c6>: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 /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  28. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,561

    Are there more details? I don't see the specific cause of the error in these logs.
     
  29. alexbozza

    alexbozza

    Joined:
    Mar 3, 2020
    Posts:
    1
    @JoshPeterson
    Hello, can you help with this? I am looking at internet, and a lot of people have problem when need to use IL2CPP.
    Please correct me if i am wrong, but as of september 2019, google will accept 64-bit apk, and for that we need IL2CPP. When I used mono, it worked, but not now;

    bellow the error.
    ERROR1
    --include-unity-root-assembly=C:/PROJETOSUNITY/money/Temp/StagingArea/assets/bin/Data/Managed/Assembly-CSharp.dll --include-unity-root-assembly=C:/PROJETOSUNITY/money/Temp/StagingArea/assets/bin/Data/Managed/UnityEngine.UI.dll --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory=C:/PROJETOSUNITY/money/Temp/StagingArea/assets/bin/Data/Managed --rule-set=Conservative --editor-data-file=C:/PROJETOSUNITY/money/Temp/StagingArea/assets/bin/Data/Managed/EditorToUnityLinkerData.json --platform=Android --enable-engine-module-stripping --engine-modules-asset-file="C:/Program Files/Unity/Hub/Editor/2019.3.7f1/Editor/Data/PlaybackEngines/AndroidPlayer/Whitelists/../modules.asset"

    stdout:
    stderr:

    Exce o Sem Tratamento: System.IO.FileNotFoundException: N o foi poss vel carregar arquivo ou assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ou uma de suas depend ncias. O sistema n o pode encontrar o arquivo especificado.
    em Unity.Linker.UnityDriver..ctor(String[] args)
    em Unity.Linker.Program.Main(String[] args)

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
    UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String)
    UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String&, String&, IEnumerable`1, UnityLinkerRunInformation)
    UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(UnityLinkerRunInformation)
    UnityEditorInternal.AssemblyStripper:StripAssemblies(String, BaseUnityLinkerPlatformProvider, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel)
    UnityEditorInternal.IL2CPPBuilder:Run()
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    ERROR2
    Exception: C:\Program Files\Unity\Hub\Editor\2019.3.7f1\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String& output, System.String& error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <88091cc0f6184c3ca77702906799aea5>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <88091cc0f6184c3ca77702906799aea5>: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 <88091cc0f6184c3ca77702906799aea5>:0)
    Unit
    ERROR3
    Build completed with a result of 'Failed' in 27 seconds (26909 ms)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    ERROR4
    UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <78f1ad0f25c84e3ca853e639f50d95f5>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <78f1ad0f25c84e3ca853e639f50d95f5>:0
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     

    Attached Files:

  30. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,561
    Can you translate this error message to English?

    "N o foi poss vel carregar arquivo ou assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ou uma de suas depend ncias. O sistema n o pode encontrar o arquivo especificado."
     
  31. vanshika1012

    vanshika1012

    Joined:
    Sep 18, 2014
    Posts:
    48
    Dear @JoshPeterson , Thank you for looking into bugs. I just upgraded Unity3d and all my errors vanish but thank you for your time.
     
    JoshPeterson likes this.
  32. Jorhoto

    Jorhoto

    Joined:
    May 7, 2019
    Posts:
    94
    My error... Bascally it says, the filename or extension is too long. What to do?

    'E:\Program\Unity\2019.3.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe': El nombre del archivo o la extensi?n es demasiado largo. (0xCE)

    Failed running E:\Program\Unity\2019.3.7f1\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="ARMv7" --configuration="Release" --outputpath="C:\Users\astut\Desktop\Projects\SHL\SHL Compliance\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\astut\Desktop\Projects\SHL\SHL Compliance\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="E:/Program/Unity/2019.3.7f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="E:/Program/Unity/2019.3.7f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="E:/Program/Unity/2019.3.7f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser=E:/Program/Unity/2019.3.7f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe --directory="C:/Users/astut/Desktop/Projects/SHL/SHL Compliance/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="C:/Users/astut/Desktop/Projects/SHL/SHL Compliance/Temp/StagingArea/Il2Cpp/il2cppOutput"


    stdout:

    Building libil2cpp.so with AndroidToolChain

    Output directory: C:\Users\astut\Desktop\Projects\SHL\SHL Compliance\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a

    Cache directory: C:\Users\astut\Desktop\Projects\SHL\SHL Compliance\Library\il2cpp_android_armeabi-v7a\il2cpp_cache

    ObjectFiles: 220 of which compiled: 0

    Total compilation time: 115 milliseconds.

    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: E:\Program\Unity\2019.3.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\astut\AppData\Local\Temp\tmp6A2A.tmp" -o "C:\Users\astut\Desktop\Projects\SHL\SHL Compliance\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_C0AB4D8B0C95BC809581CAB71A13D646\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe


    clang++.exe: error: unable to execute command: Couldn't execute program 'E:\Program\Unity\2019.3.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe': El nombre del archivo o la extensi?n es demasiado largo. (0xCE)

    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)



    en Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)

    en Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)

    en il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)

    en il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)

    en il2cpp.Program.Main(String[] args)

    stderr:


    Excepci�n no controlada: Unity.IL2CPP.Building.BuilderFailedException: E:\Program\Unity\2019.3.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\astut\AppData\Local\Temp\tmp6A2A.tmp" -o "C:\Users\astut\Desktop\Projects\SHL\SHL Compliance\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_C0AB4D8B0C95BC809581CAB71A13D646\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe


    clang++.exe: error: unable to execute command: Couldn't execute program 'E:\Program\Unity\2019.3.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe': El nombre del archivo o la extensi?n es demasiado largo. (0xCE)

    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)



    en Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)

    en Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)

    en il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)

    en il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)

    en il2cpp.Program.Main(String[] args)


    UnityEngine.Debug:LogError(Object)

    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)

    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)

    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String)

    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(Il2CppBuildPipelineData, String, String, Boolean)

    UnityEditorInternal.IL2CPPBuilder:Run()

    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)

    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()
     
    Last edited: Apr 12, 2020
  33. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,561
    You may want to try a shorter installation path for the Android NDK. For some period of time, the Unity hub was installing it to a path that end up beyond Windows maximum path length. You can find details about how to manually install the NDK and tell Unity about it's location here:

    https://docs.unity3d.com/Manual/android-sdksetup.html
     
    Jorhoto likes this.
  34. Jorhoto

    Jorhoto

    Joined:
    May 7, 2019
    Posts:
    94
    I reinstalled Unity in: E:\Unity instead of E:\Program\Unity and the issue is gone.

    Thank you!!
     
  35. coolamigo

    coolamigo

    Joined:
    Mar 28, 2020
    Posts:
    25
    What do you mean by Build with IL2CPP. are you talking about the option in player settings where this is selectable against mono?
     
  36. coolamigo

    coolamigo

    Joined:
    Mar 28, 2020
    Posts:
    25
    This is my first project, and after having done everything, I came to know that playstore will require il2cpp . Doing that (and selecting Arm 64), I got a few errors that remain when I create a new project in the same settings. these are:

    e1.JPG
    Failed running C:\Program Files\Unity\Hub\Editor\2018.4.22f1\Editor\Data\il2cpp\build/UnityLinker.exe -out="D:\Users\asad\test2\Temp\StagingArea\assets\bin\Data\Managed\tempStrip" -x="C:\Program Files\Unity\Hub\Editor\2018.4.22f1\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Core.xml" -x "D:\Users\asad\test2\Temp\StagingArea\assets\bin\Data\Managed\..\platform_native_link.xml" -d "D:\Users\asad\test2\Temp\StagingArea\assets\bin\Data\Managed" --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory=D:\Users\asad\test2\Temp\StagingArea\assets\bin\Data\Managed --rule-set=Conservative

    stdout:
    Fatal error in Unity CIL Linker
    Mono.Linker.Steps.XmlResolutionException: Failed to process XML description: C:\Program Files\Unity\Hub\Editor\2018.4.22f1\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Core.xml ---> System.MissingMethodException: Method not found: '!!0[] System.Array.Empty()'.
    at Mono.Linker.Steps.ResolveFromXmlStep.ProcessType(TypeDefinition type, XPathNavigator nav)
    at Mono.Linker.Steps.ResolveFromXmlStep.ProcessTypes(AssemblyDefinition assembly, XPathNodeIterator iterator)
    at Mono.Linker.Steps.ResolveFromXmlStep.ProcessAssembly(AssemblyDefinition assembly, XPathNodeIterator iterator)
    at Unity.Linker.Steps.Resolution.UnityResolveFromXmlStep.ProcessAssemblies(LinkContext context, XPathNodeIterator iterator)
    at Mono.Linker.Steps.ResolveFromXmlStep.Process()
    --- End of inner exception stack trace ---
    at Mono.Linker.Steps.ResolveFromXmlStep.Process()
    at Mono.Linker.Steps.BaseStep.Process(LinkContext context)
    at Mono.Linker.Pipeline.Process(LinkContext context)
    at Unity.Linker.UnityDriver.Run()
    at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling()
    at Unity.Linker.UnityDriver.RunDriver()
    stderr:

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:192)
    UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1, BuildTargetGroup, ManagedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:124)
    UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:324)
    UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:216)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:203)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)



    The second Error



    Exception: C:\Program Files\Unity\Hub\Editor\2018.4.22f1\Editor\Data\il2cpp\build/UnityLinker.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:192)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Collections.Generic.IEnumerable`1[T] additionalBlacklist, UnityEditor.BuildTargetGroup buildTargetGroup, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:124)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.Collections.IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:324)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:216)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:203)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <733a492f59f3476a9392a2a19e8f5a7d>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <733a492f59f3476a9392a2a19e8f5a7d>: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 <733a492f59f3476a9392a2a19e8f5a7d>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <733a492f59f3476a9392a2a19e8f5a7d>: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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:288)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)


    3rd


    Build completed with a result of 'Failed'
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)


    4th


    UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:194
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)


    So my settings are as:


    projSet.JPG


    ProjSt.JPG

    In whatever Target architectures, once in il2ccpp mode, the error remains
     

    Attached Files:

    • e1.JPG
      e1.JPG
      File size:
      118.2 KB
      Views:
      77
    • e2.JPG
      e2.JPG
      File size:
      161 KB
      Views:
      77
    Last edited: May 2, 2020
  37. coolamigo

    coolamigo

    Joined:
    Mar 28, 2020
    Posts:
    25
    Please help, I have tried all I could. This is all that needs to be done now. It basically stops at "Building Player".
     
    Last edited: May 4, 2020
  38. Jorhoto

    Jorhoto

    Joined:
    May 7, 2019
    Posts:
    94
    Hi, start by posting what is the specific error message you get.
     
  39. coolamigo

    coolamigo

    Joined:
    Mar 28, 2020
    Posts:
    25
    Hi, I do believe I need to provide all necessary information. The specific errors are shown in the first image. I am not sure what you intend to say.
     
  40. Jorhoto

    Jorhoto

    Joined:
    May 7, 2019
    Posts:
    94
    I didn't see that. The risk of splitting the same post question.
     
  41. coolamigo

    coolamigo

    Joined:
    Mar 28, 2020
    Posts:
    25
    I have now two installations and both are giving the same errors.
     
  42. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,561
    Could you submit this project (or a similar one that reproduces this issue) with a bug report? I'm not sure what is wrong, but the fact that it happens with two installations of Unity is rather odd. You can see how to report a bug here:

    https://unity3d.com/unity/qa/bug-reporting

    Also - it might be worth trying a new empty project. Will that build for Android with your Unity installations? That would let us know if the problem is specific to the Unity installation or to the project here.
     
  43. coolamigo

    coolamigo

    Joined:
    Mar 28, 2020
    Posts:
    25
    I have tried with an empty project as well; it's mentioned in the post
     
  44. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,561
    Sorry, I missed that. It seems there is something wrong with the Unity installation then. Can you check on the .NET Framework version that is installed on the computer?

    https://docs.microsoft.com/en-us/do...how-to-determine-which-versions-are-installed

    You should have at least .NET 4.7.1 or later installed. The Unity installer should handle this, but maybe something went wrong.
     
  45. loganthomas0728

    loganthomas0728

    Joined:
    Jan 8, 2020
    Posts:
    2
    Hey my name is logan and I need help with my build. Ill send you the errors, but I was assigned by my teacher to make a multiplayer build racing game with Photon. I am on a video that positions the cars, in the game. But when I hit build and run to test it. this comes up:
    IOException: Failed to prepare target build directory. Is a built game instance running?
    UnityEditor.WindowsStandalone.WindowsDesktopStandalonePostProcessor.DeleteDestination (UnityEditor.Modules.BuildPostProcessArgs args) (at <9f87f9d4eb9c45e2a66694f6be419e45>:0)
    DesktopStandalonePostProcessor.CopyStagingAreaIntoDestination (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) (at <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <78f1ad0f25c84e3ca853e639f50d95f5>: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 <78f1ad0f25c84e3ca853e639f50d95f5>:0)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

    Build completed with a result of 'Failed' in 16 seconds (16372 ms)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <78f1ad0f25c84e3ca853e639f50d95f5>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <78f1ad0f25c84e3ca853e639f50d95f5>:0
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()


    I don't understand why its doing this. I seen everywhere that you are replying in a short amount of time. But can you help me why these 3 errors are there and it failing the build and run? Thank you for reading.
     
  46. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,561
    It looks like you might have something preventing the build folder for the game from being deleted. The build process first deletes the folder for the previous build, then creates a new build in the same place. So make sure nothing is using that folder.
     
  47. coolamigo

    coolamigo

    Joined:
    Mar 28, 2020
    Posts:
    25
    Thanks! You are right about the version; however, that alone did not solve the problem. After building with later versions, I was still getting the same last two errors. What solved them was unchecking ad option inside Unity and only use the one downloaded from App Store. This leads me to another ambiguity, how do we then select appropriate for children options if we are not able to check ads option in the Services section and will ads still display. They do seem to work in the editor.
     
  48. Ing3nu

    Ing3nu

    Joined:
    Jul 21, 2012
    Posts:
    15
    FIXED!! See my comment below.

    Hi @JoshPeterson

    You seem to be the expert on these kinds of issues, anything you can pull out of this error for me would be a huge help. I am building for Android and have switched to il2cpp from mono. I have tried upgrading and downgrading my versions of Unity and my various sdk/ndk. I have tried removing the ADs package and turning off Analytics. The only thing I have found that *might* be relevant is that I am working with ARFoundation. I know ARKit has problems with il2cpp, but was under the impression that Foundation didn't have the same issue.

    Anything you can point out in the following error that could help me find the solution would be a huge help.

    Thank you!



    Code (CSharp):
    1. Failed running C:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Users\unger\Documents\coversmasher05\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\unger\Documents\coversmasher05\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/android-ndk-r16b" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=C:/Users/unger/Documents/coversmasher05/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=C:/Users/unger/Documents/coversmasher05/Temp/StagingArea/Il2Cpp/il2cppOutput
    2.  
    3. stdout:
    4. Building libil2cpp.so with AndroidToolChain
    5.     Output directory: C:\Users\unger\Documents\coversmasher05\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    6.     Cache directory: C:\Users\unger\Documents\coversmasher05\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    7. ObjectFiles: 236 of which compiled: 0
    8. Total compilation time: 440 milliseconds.
    9. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\unger\AppData\Local\Temp\tmp6EBB.tmp" -o "C:\Users\unger\Documents\coversmasher05\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_7F313DDA1D337D8E12551C6888A03CD8\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "C:\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -latomic -llog -rdynamic -fuse-ld=gold.exe
    10.  
    11. C:\Users\unger\Documents\coversmasher05\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp2.cpp:21306: error: undefined reference to 'EnumerateVideoFormats'
    12. C:\Users\unger\Documents\coversmasher05\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp2.cpp:21320: error: undefined reference to 'EnumerateFaceTrackingVideoFormats'
    13. C:\Users\unger\Documents\coversmasher05\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp2.cpp:21306: error: undefined reference to 'EnumerateVideoFormats'
    14. C:\Users\unger\Documents\coversmasher05\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp2.cpp:21320: error: undefined reference to 'EnumerateFaceTrackingVideoFormats'
    15. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    16.  
    17.  
    18.   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    19.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    20.   at il2cpp.Program.DoRun(String[] args)
    21.   at il2cpp.Program.Run(String[] args)
    22.   at il2cpp.Program.Main(String[] args)
    23. stderr:
    24.  
    25. Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\unger\AppData\Local\Temp\tmp6EBB.tmp" -o "C:\Users\unger\Documents\coversmasher05\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_7F313DDA1D337D8E12551C6888A03CD8\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "C:\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -latomic -llog -rdynamic -fuse-ld=gold.exe
    26.  
    27. C:\Users\unger\Documents\coversmasher05\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp2.cpp:21306: error: undefined reference to 'EnumerateVideoFormats'
    28. C:\Users\unger\Documents\coversmasher05\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp2.cpp:21320: error: undefined reference to 'EnumerateFaceTrackingVideoFormats'
    29. C:\Users\unger\Documents\coversmasher05\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp2.cpp:21306: error: undefined reference to 'EnumerateVideoFormats'
    30. C:\Users\unger\Documents\coversmasher05\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp2.cpp:21320: error: undefined reference to 'EnumerateFaceTrackingVideoFormats'
    31. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    32.  
    33.  
    34.   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    35.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    36.   at il2cpp.Program.DoRun(String[] args)
    37.   at il2cpp.Program.Run(String[] args)
    38.   at il2cpp.Program.Main(String[] args)
    39.  
    40. UnityEngine.Debug:LogError(Object)
    41. UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:126)
    42. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:71)
    43. UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:503)
    44. UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:484)
    45. UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
    46. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
    47. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
     
    Last edited: May 17, 2020
  49. coolamigo

    coolamigo

    Joined:
    Mar 28, 2020
    Posts:
    25
    Have you checked the .net version.
     
  50. Ing3nu

    Ing3nu

    Joined:
    Jul 21, 2012
    Posts:
    15
    Hi @coolamigo
    I have tried building with both .net 2.0 and .net 4.x
    Are you suggesting I check to be sure Unity HUB installed them properly?
     
unityunity