Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Build - IL2CPP errors - Please, how fix it?

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

  1. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    Can you submit a bug report to Unity then? We should investigate this issue.
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    I think that you both want to stick with r16b NDK.
     
  3. EL-soNK

    EL-soNK

    Joined:
    Jul 13, 2015
    Posts:
    6
    May I jump ship here, can't build for 64 Bit Android with IL2CPP -- and it's driving me nuts. Tried everything, including NDK 16b.

    Build always fails with this:

    Win32Exception: ApplicationName='D:\Programme\Unity3D\2019.1.9f1\Editor\Data\il2cpp/build/il2cpp.exe', CommandLine='--convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="D:\Unity3D\Picture Wellington Bytes Android\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\Unity3D\Picture Wellington Bytes Android\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="D:\Programme\Unity3D\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="D:\Programme\Unity3D\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="D:/Programme/Unity3D/2019.1.9f1/Editor/Data/PlaybackEngines/AndroidPlayer/android-ndk-r16b" --profiler-report --map-file-parser=D:/Programme/Unity3D/2019.1.9f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe --directory="D:/Unity3D/Picture Wellington Bytes Android/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="D:/Unity3D/Picture Wellington Bytes Android/Temp/StagingArea/Il2Cpp/il2cppOutput" ', CurrentDirectory='D:\Unity3D\Picture Wellington Bytes Android\Temp\StagingArea\assets\bin\Data\Managed', Native error= Der angeforderte Vorgang erfordert erhöhte Rechte.


    Last sentence after "Native error" is in german, it's the error mentioned in this thread already: "The requested operation requires elevation". The directories seem to be write protected, which I tried to change, but doesn't really work out.
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    I'm not sure why this happens, can you submit a bug report to Unity? Then we can investigate more.
     
  5. EL-soNK

    EL-soNK

    Joined:
    Jul 13, 2015
    Posts:
    6
    Just noticed a new Unity release and gave 2019.1.10f1 a try. And what shall I say... IT WORKS NOW! 64 bit ARMv7 IL2CPP... all that! With Unity's default Android JDK/NDK installs! Awesome.
     
  6. craniolabs

    craniolabs

    Joined:
    Jul 3, 2018
    Posts:
    2
    Hi @JoshPeterson,

    I had a similar issue. I've tried everything from this thread, but the error doesn't go away...

    I'm just upgraded to Unity 2019.1.10f1 and tried to build my project using IL2CPP to Android devices. The building process stops when it reaches the IL2CPP part. I tried building an empty project with the same settings and it worked.

    Please, help me out, I'm losing my mind with this... It's been a week already...

    Here are my error logs:

    --- First Log ---

    IL2CPP error for method 'System.Void Parse.ParseInstallation::<get_Badge>b__c5()' in assembly 'C:\Unity Projects\FranchiseHero\Temp\StagingArea\assets\bin\Data\Managed\Parse.Unity.dll'

    --- Second Log ---

    Failed running D:\Unity Editors\2019.1.10f1\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:\Unity Projects\FranchiseHero\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Unity Projects\FranchiseHero\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="D:\Unity Editors\2019.1.10f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="D:\Unity Editors\2019.1.10f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="D:/NDK/android-ndk-r16b" --profiler-report --map-file-parser="D:/Unity Editors/2019.1.10f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="C:/Unity Projects/FranchiseHero/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="C:/Unity Projects/FranchiseHero/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:

    IL2CPP error for method 'System.Void Parse.ParseInstallation::<get_Badge>b__c5()' in assembly 'C:\Unity Projects\FranchiseHero\Temp\StagingArea\assets\bin\Data\Managed\Parse.Unity.dll'

    il2cpp.exe didn't catch exception: System.NullReferenceException

    em Unity.IL2CPP.MethodBodyWriter.GetMethodCallExpression(IGeneratedMethodCodeWriter writer, MethodReference callingMethod, MethodReference methodToCall, MethodReference unresolvedMethodtoCall, TypeResolver typeResolverForMethodToCall, MethodCallType callType, IRuntimeMetadataAccess runtimeMetadataAccess, VTableBuilder vTableBuilder, IEnumerable`1 argumentArray, Boolean useArrayBoundsCheck, Func`2 addUniqueSuffix)

    em Unity.IL2CPP.MethodBodyWriter.CallExpressionFor(MethodReference callingMethod, MethodReference unresolvedMethodToCall, MethodCallType callType, List`1 argsFor, Func`2 addUniqueSuffix, Boolean emitNullCheckForInvocation)

    em Unity.IL2CPP.MethodBodyWriter.ProcessInstruction(Node node, InstructionBlock block, Instruction& ins)

    em Unity.IL2CPP.MethodBodyWriter.GenerateCodeRecursive(Node node)

    em Unity.IL2CPP.MethodBodyWriter.Generate()

    em Unity.IL2CPP.MethodWriter.<>c__DisplayClass0_0.<WriteMethodDefinition>b__0(IGeneratedMethodCodeWriter bodyWriter, IRuntimeMetadataAccess metadataAccess)

    em Unity.IL2CPP.CodeWriterExtensions.WriteMethodWithMetadataInitialization(IGeneratedMethodCodeWriter writer, String methodSignature, String methodFullName, Action`2 writeMethodBody, String uniqueIdentifier, MethodReference methodRef)

    em Unity.IL2CPP.MethodWriter.WriteMethodDefinition(IGeneratedMethodCodeWriter writer, MethodReference method, IMethodCollector methodCollector, ISourceAnnotationWriter sourceAnnotationWriter, IIcallMappingService icallMapping, VTableBuilder vtableBuilder, SharedMethodCollector sharedMethodCollector, ISequencePointProvider sequencePointCollector)

    em Unity.IL2CPP.SourceWriter.<>c__DisplayClass7_0.<WriteMethodSourceFiles>b__0(IGeneratedMethodCodeWriter writer, TypeReference type)

    em Unity.IL2CPP.SourceWriter.WriteEqualSizedChunks[T](NPath outputDir, IEnumerable`1 items, String fileName, Int64 chunkSize, Action`1 writeHeaderAction, Action`2 writeItemAction, Action`1 writeFooterAction, SourceWritingContext sourceWritingContext)

    em Unity.IL2CPP.SourceWriter.WriteEqualSizedChunks[T](NPath outputDir, IEnumerable`1 items, String fileName, Int64 chunkSize, Action`2 writeItemAction, SourceWritingContext sourceWritingContext)

    em Unity.IL2CPP.SourceWriter.WriteMethodSourceFiles(NPath outputDirectory, SourceWritingContext sourceWritingContext, String fileName, IEnumerable`1 typeList, IMethodCollector methodCollector, Boolean writeMarshalingDefinitions)

    em Unity.IL2CPP.SourceWriter.Write(NPath outputDir, SourceWritingContext sourceWritingContext, AssemblyDefinition assemblyDefinition, IMethodCollector methodCollector)

    em Unity.IL2CPP.AssemblyConverter.Apply()

    em 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)

    em il2cpp.Program.DoRun(String[] args)

    em il2cpp.Program.Run(String[] args)

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


    stderr:
    System.NullReferenceException

    em Unity.IL2CPP.MethodBodyWriter.GetMethodCallExpression(IGeneratedMethodCodeWriter writer, MethodReference callingMethod, MethodReference methodToCall, MethodReference unresolvedMethodtoCall, TypeResolver typeResolverForMethodToCall, MethodCallType callType, IRuntimeMetadataAccess runtimeMetadataAccess, VTableBuilder vTableBuilder, IEnumerable`1 argumentArray, Boolean useArrayBoundsCheck, Func`2 addUniqueSuffix)

    em Unity.IL2CPP.MethodBodyWriter.CallExpressionFor(MethodReference callingMethod, MethodReference unresolvedMethodToCall, MethodCallType callType, List`1 argsFor, Func`2 addUniqueSuffix, Boolean emitNullCheckForInvocation)

    em Unity.IL2CPP.MethodBodyWriter.ProcessInstruction(Node node, InstructionBlock block, Instruction& ins)

    em Unity.IL2CPP.MethodBodyWriter.GenerateCodeRecursive(Node node)

    em Unity.IL2CPP.MethodBodyWriter.Generate()

    em Unity.IL2CPP.MethodWriter.<>c__DisplayClass0_0.<WriteMethodDefinition>b__0(IGeneratedMethodCodeWriter bodyWriter, IRuntimeMetadataAccess metadataAccess)

    em Unity.IL2CPP.CodeWriterExtensions.WriteMethodWithMetadataInitialization(IGeneratedMethodCodeWriter writer, String methodSignature, String methodFullName, Action`2 writeMethodBody, String uniqueIdentifier, MethodReference methodRef)

    em Unity.IL2CPP.MethodWriter.WriteMethodDefinition(IGeneratedMethodCodeWriter writer, MethodReference method, IMethodCollector methodCollector, ISourceAnnotationWriter sourceAnnotationWriter, IIcallMappingService icallMapping, VTableBuilder vtableBuilder, SharedMethodCollector sharedMethodCollector, ISequencePointProvider sequencePointCollector)

    em Unity.IL2CPP.SourceWriter.<>c__DisplayClass7_0.<WriteMethodSourceFiles>b__0(IGeneratedMethodCodeWriter writer, TypeReference type)

    em Unity.IL2CPP.SourceWriter.WriteEqualSizedChunks[T](NPath outputDir, IEnumerable`1 items, String fileName, Int64 chunkSize, Action`1 writeHeaderAction, Action`2 writeItemAction, Action`1 writeFooterAction, SourceWritingContext sourceWritingContext)

    em Unity.IL2CPP.SourceWriter.WriteEqualSizedChunks[T](NPath outputDir, IEnumerable`1 items, String fileName, Int64 chunkSize, Action`2 writeItemAction, SourceWritingContext sourceWritingContext)

    em Unity.IL2CPP.SourceWriter.WriteMethodSourceFiles(NPath outputDirectory, SourceWritingContext sourceWritingContext, String fileName, IEnumerable`1 typeList, IMethodCollector methodCollector, Boolean writeMarshalingDefinitions)

    em Unity.IL2CPP.SourceWriter.Write(NPath outputDir, SourceWritingContext sourceWritingContext, AssemblyDefinition assemblyDefinition, IMethodCollector methodCollector)

    em Unity.IL2CPP.AssemblyConverter.Apply()

    em 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)

    em il2cpp.Program.DoRun(String[] args)

    em il2cpp.Program.Run(String[] args)

    em 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:496)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)
    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)

    --- Third Log ---

    Exception: D:\Unity Editors\2019.1.10f1\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[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:496)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/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 C:/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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    --- Fourth Log ---

    Build completed with a result of 'Failed'
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    --- Fifth Log ---

    UnityEditor.BuildPlayerWindow+BuildMethodException: 4 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)
     
  7. idcanu

    idcanu

    Joined:
    Jul 3, 2017
    Posts:
    14

    @MuraliVenkat Did You Find any further solutions for it. I am persisting with the same error . Did it help by deleting the IOS folders ?
    Thanks in Advance.
     
  8. Maras

    Maras

    Joined:
    Dec 11, 2012
    Posts:
    112
    I have similar error. Unity 2018.2.4f1
    Failed running C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityjit" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="D:\_GameDev\Unity\table-dragon\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\_GameDev\Unity\table-dragon\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Users/Mara/Desktop/ndk/android-ndk-r13b" --map-file-parser="C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --assembly="D:\_GameDev\Unity\table-dragon\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll" --assembly="D:\_GameDev\Unity\table-dragon\Temp\StagingArea\assets\bin\Data\Managed\VuforiaScripts.dll" --assembly="D:\_GameDev\Unity\table-dragon\Temp\StagingArea\assets\bin\Data\Managed\Unity.TextMeshPro.dll" --assembly="D:\_GameDev\Unity\table-dragon\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.UI.dll" --assembly="D:\_GameDev\Unity\table-dragon\Temp\StagingArea\assets\bin\Data\Managed\Vuforia.UnityExtensions.dll" --assembly="D:\_GameDev\Unity\table-dragon\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Analytics.dll" --assembly="D:\_GameDev\Unity\table-dragon\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dll" --assembly="D:\_GameDev\Unity\table-dragon\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Advertisements.Android.dll" --generatedcppdir="D:\_GameDev\Unity\table-dragon\Temp\StagingArea\Il2Cpp\il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: D:\_GameDev\Unity\table-dragon\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: D:\_GameDev\Unity\table-dragon\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: In file included from D:\_GameDev\Unity\table-dragon\Temp\StagingArea\Il2Cpp\il2cppOutput\Il2CppTypeDefinitions.cpp:1:
    C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\il2cpp\libil2cpp\il2cpp-config.h:3:10: fatal error: 'assert.h' file not found
    #include <assert.h>
    ^
    1 error generated.


    Invocation was: Executable: "C:\Users\Mara\Desktop\ndk\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"
    Arguments: -DNET_4_0 -DUNITY_JIT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\il2cpp\external\boehmgc\include" -I"D:\_GameDev\Unity\table-dragon\Temp\StagingArea\Il2Cpp\il2cppOutput" -I"." -I"C:\Users\Mara\Desktop\ndk\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\include" -I"C:\Users\Mara\Desktop\ndk\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\include\backward" -I"C:\Users\Mara\Desktop\ndk\android-ndk-r13b\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 -Os --sysroot "C:\Users\Mara\Desktop\ndk\android-ndk-r13b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\Mara\Desktop\ndk\android-ndk-r13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fPIE "D:\_GameDev\Unity\table-dragon\Temp\StagingArea\Il2Cpp\il2cppOutput\Il2CppTypeDefinitions.cpp" -o "D:/_GameDev/Unity/table-dragon/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/CCD8DCEB063BC10CF3F328F9B6892F42.o"

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

    Neo�et�en� v�jimka: Unity.IL2CPP.Building.BuilderFailedException: In file included from D:\_GameDev\Unity\table-dragon\Temp\StagingArea\Il2Cpp\il2cppOutput\Il2CppTypeDefinitions.cpp:1:
    C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\il2cpp\libil2cpp\il2cpp-config.h:3:10: fatal error: 'assert.h' file not found
    #include <assert.h>
    ^
    1 error generated.


    Invocation was: Executable: "C:\Users\Mara\Desktop\ndk\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"
    Arguments: -DNET_4_0 -DUNITY_JIT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2018.2.4f1\Editor\Data\il2cpp\external\boehmgc\include" -I"D:\_GameDev\Unity\table-dragon\Temp\StagingArea\Il2Cpp\il2cppOutput" -I"." -I"C:\Users\Mara\Desktop\ndk\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\include" -I"C:\Users\Mara\Desktop\ndk\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\include\backward" -I"C:\Users\Mara\Desktop\ndk\android-ndk-r13b\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 -Os --sysroot "C:\Users\Mara\Desktop\ndk\android-ndk-r13b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\Mara\Desktop\ndk\android-ndk-r13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fPIE "D:\_GameDev\Unity\table-dragon\Temp\StagingArea\Il2Cpp\il2cppOutput\Il2CppTypeDefinitions.cpp" -o "D:/_GameDev/Unity/table-dragon/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/CCD8DCEB063BC10CF3F328F9B6892F42.o"

    v Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    v Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    v il2cpp.Program.DoRun(String[] args)
    v il2cpp.Program.Run(String[] args)
    v 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:380)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection`1, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:361)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:178)
    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)

    Exception: C:\Program Files\Unity\Hub\Editor\2018.2.4f1\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[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:380)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.Collections.Generic.ICollection`1[T] userAssemblies, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:361)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:178)
    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 <82a8360024214fe1b820965dfd28b90c>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <82a8360024214fe1b820965dfd28b90c>: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 <82a8360024214fe1b820965dfd28b90c>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <82a8360024214fe1b820965dfd28b90c>: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:287)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Can you please take a look?
     
  9. AnTruong

    AnTruong

    Joined:
    Jun 14, 2018
    Posts:
    1
    Hi @JoshPeterson
    I have got an error when building apk using il2cpp. Could you take a look and tell me what should I do for this situation.
    (Unity 2017.4.30f, android-ndk-r13b, jdk1.8.0_211, visual studio 2017)

    Failed running C:\Program Files\Unity\Hub\Editor\2017.4.30f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARM64" --configuration="Release" --outputpath="D:\NHN\PROJECT\xito_AIO_Android\Temp/StagingArea\assets\bin\Data\Native\arm64-v8a\libil2cpp.so" --cachedirectory="D:\NHN\PROJECT\xito_AIO_Android\Assets\..\Library\il2cpp_android_arm64-v8a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2017.4.30f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2017.4.30f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="D:/NHN/PROJECT/android-ndk-r13b" --map-file-parser="C:\Program Files\Unity\Hub\Editor\2017.4.30f1\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --assembly="D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp-firstpass.dll" --assembly="D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll" --assembly="D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.UI.dll" --assembly="D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\assets\bin\Data\Managed\TextMeshPro-1.0.55.2017.1.0b12.dll" --assembly="D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Analytics.dll" --assembly="D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dll" --assembly="D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\assets\bin\Data\Managed\Facebook.Unity.Android.dll" --assembly="D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\assets\bin\Data\Managed\Mono.Security.dll" --assembly="D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\assets\bin\Data\Managed\mscorlib.dll" --assembly="D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\assets\bin\Data\Managed\System.Core.dll" --assembly="D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\assets\bin\Data\Managed\System.dll" --generatedcppdir="D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\Il2Cpp\il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain.
    Output directory: D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\assets\bin\Data\Native\arm64-v8a
    Cache directory: D:\NHN\PROJECT\xito_AIO_Android\Library\il2cpp_android_arm64-v8a\il2cpp_cache
    ObjectFiles: 652 of which compiled: 0
    Total compilation time: 8889 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: D:\NHN\PROJECT\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\Anlampard\AppData\Local\Temp\tmp847B.tmp" -o "D:\NHN\PROJECT\xito_AIO_Android\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_144887456A66B33FB44FF0DF9D851DE4\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "D:\NHN\PROJECT\android-ndk-r13b\platforms\android-21\arch-arm64" -gcc-toolchain "D:\NHN\PROJECT\android-ndk-r13b\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64" -target aarch64-none-linux-android -Wl,--wrap,sigaction -L "D:\NHN\PROJECT\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\arm64-v8a" -lgnustl_static -llog -Xlinker -Map="D:\NHN\PROJECT\xito_AIO_Android\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_144887456A66B33FB44FF0DF9D851DE4\libil2cpp.map" -rdynamic -fPIE -pie -fuse-ld=bfd.exe

    clang++.exe: warning: argument unused during compilation: '-pie'
    D:\NHN\PROJECT\xito_AIO_Android\Library\il2cpp_android_arm64-v8a\il2cpp_cache\4E74E586C44D5A8C4A82BD537EB47D19.o: In function `Cache_Sync_m677861531':
    D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_14.cpp:63523: undefined reference to `Sync'
    D:\NHN\PROJECT\xito_AIO_Android\Library\il2cpp_android_arm64-v8a\il2cpp_cache\766BB3AC3779DED52F04655C7E574953.o: In function `URLSchemeSupport__isURLSchemeSupported_m3849457797':
    D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_4.cpp:42801: undefined reference to `_isURLSchemeSupported'
    D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_4.cpp:42801: undefined reference to `_isURLSchemeSupported'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner(CppProgramBuilder builder, 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:\NHN\PROJECT\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\Anlampard\AppData\Local\Temp\tmp847B.tmp" -o "D:\NHN\PROJECT\xito_AIO_Android\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_144887456A66B33FB44FF0DF9D851DE4\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "D:\NHN\PROJECT\android-ndk-r13b\platforms\android-21\arch-arm64" -gcc-toolchain "D:\NHN\PROJECT\android-ndk-r13b\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64" -target aarch64-none-linux-android -Wl,--wrap,sigaction -L "D:\NHN\PROJECT\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\arm64-v8a" -lgnustl_static -llog -Xlinker -Map="D:\NHN\PROJECT\xito_AIO_Android\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_144887456A66B33FB44FF0DF9D851DE4\libil2cpp.map" -rdynamic -fPIE -pie -fuse-ld=bfd.exe

    clang++.exe: warning: argument unused during compilation: '-pie'
    D:\NHN\PROJECT\xito_AIO_Android\Library\il2cpp_android_arm64-v8a\il2cpp_cache\4E74E586C44D5A8C4A82BD537EB47D19.o: In function `Cache_Sync_m677861531':
    D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_14.cpp:63523: undefined reference to `Sync'
    D:\NHN\PROJECT\xito_AIO_Android\Library\il2cpp_android_arm64-v8a\il2cpp_cache\766BB3AC3779DED52F04655C7E574953.o: In function `URLSchemeSupport__isURLSchemeSupported_m3849457797':
    D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_4.cpp:42801: undefined reference to `_isURLSchemeSupported'
    D:\NHN\PROJECT\xito_AIO_Android\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_4.cpp:42801: undefined reference to `_isURLSchemeSupported'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


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

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    This error means there is an extern method in C# code named isURLSchemeSupported (and a few others). An extern method must have a native method of the same name in the build. Is there a native library built for Android arm64 which exposes a function named isURLSchemeSupported?

    If not, then you can use #if statements in the C# code where that extern method is defined to ensure that the extern method is not compiled for Android arm64.
     
  11. jnbei

    jnbei

    Joined:
    Jul 19, 2017
    Posts:
    4

    Hello

    How can i use the #if statement on the extern method ??
     
  12. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
  13. ebenknot

    ebenknot

    Joined:
    Dec 26, 2013
    Posts:
    69
    Hi, i had the same problem. I leave here photo of errors. But now is solved!

    How do i solve this?

    First of all erase all plugins like GameAnalytics,FacebooSDK,...etc......Then, download previous unity (2019.1.14f1 for example) and take the ndk folder. Erase the ndk folder of your unity (the last one released). Put the ndk folder of the previous unity in the place where the erased folder was. Thats all for me. I could create 64 bits app bundle with no problem.
     

    Attached Files:

  14. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    That second error in the console window will have more details about the cause of the issue. Can you select it and copy the text from the error then paste it here?
     
  15. glutvort

    glutvort

    Joined:
    Apr 13, 2019
    Posts:
    31
  16. ebenknot

    ebenknot

    Joined:
    Dec 26, 2013
    Posts:
    69
    Sorry now i cant because i have solved all errors so i have no errors in the console to clickt it and show. (><)
     
  17. AlexHell

    AlexHell

    Joined:
    Oct 2, 2014
    Posts:
    164
    My case https://forum.unity.com/threads/google-play-x86-deny.729122/#post-4869419

    short:
    If I build one APK with only one ARM64 checkbox - then build is complete (can't test on device yet)

    But when I build with all 3 checkboxes ARMv7 + ARM64 + x86 https://prnt.sc/ou91zq
    then build crashes - il2cpp
    the IOException

    It's show-stopper:
    - I can't upload two APKs to Google Play Console, due to bug in google play console - it doesn't see the 64-bit version, and complains about it
    https://issuetracker.google.com/issues/139631026
    - I can't build the single APK (3 chechboxes) due to this il2cpp crash
     
  18. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    Do you need to provide an Android build with the x86 architecture? Most Android devices are armv7 or arm64.
     
  19. AlexHell

    AlexHell

    Joined:
    Oct 2, 2014
    Posts:
    164
    Google's new requirement is 64 bit for new app. I need 32 + 64 bit both.
    I tried this, and can build 3 checkboxes now, and upload single APK to Play Console.
    The bug now is "not compliant 64 bit" for single APK build with 3 checkboxes.
    https://issuetracker.google.com/issues/139631026
     
  20. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    I don't believe that you need to to build for x86 to compile with Google's requirement. I think it requires only armv7 and arm64.
     
  21. AlexHell

    AlexHell

    Joined:
    Oct 2, 2014
    Posts:
    164
    Ok, may be you are right.. the x86 disabled checkbox may slightly decrease build size.
    The problem is not x86 now, but 64bit version, but it's not unity bug as I understand.
     
  22. rommel89

    rommel89

    Joined:
    Jul 4, 2019
    Posts:
    2
    Error il2cpp.exe did not run properly!. No puedo exportar mi APK para que sea tambien de 64 bits
    Tengo un juego para subirlo a PlayStore pero cuando lo quise subir apareció que tiene que ser para 64 bits tambien. a si que en las opciones de Unity le quite una que dice Mono y puse IL2CPP y a si ya pude seleccionar las otras opciones que dicen ARMv7 ARM64 x86. Pero cuando lo compilo de nuevo a la hora que esta en la parte Building Native Binary with IL2CPP no termine de hacer esa tarea, marcandome 3 errores:

    Failed running C:\Program Files\2019.1.6f1\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\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\SPARTAN-117\Documents\ComeDulces2D\Assets..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/2019.1.6f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="C:/Program Files/2019.1.6f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=C:/Users/SPARTAN-117/Documents/ComeDulces2D/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=C:/Users/SPARTAN-117/Documents/ComeDulces2D/Temp/StagingArea/Il2Cpp/il2cppOutput

    stdout:

    Building libil2cpp.so with AndroidToolChain

    1. Output directory: C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    2. Cache directory: C:\Users\SPARTAN-117\Documents\ComeDulces2D\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: In file included from C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp\Lump_libil2cpp_os.cpp:72:

    In file included from C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity\AtomicQueue.cpp:6:

    In file included from C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps.h:121:

    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:622:17: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "r2", "r3"
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:653:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:690:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:724:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:755:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r0", "r1", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:793:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:833:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:875:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:917:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    9 errors generated.

    Invocation was: Executable: "C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"

    Arguments: -DNET_4_0 -DUNITY_AOT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D_linux -DSTDC_FORMAT_MACROS -I"C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\2019.1.6f1\Editor\Data\il2cpp\external\bdwgc\include" -I"." -I"C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\llvm-libc++\include" -I"C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\llvm-libc++abi\include" -I"C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\android\support\include" -c -g -DNDEBUG -fexceptions -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 "C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sysroot" -gcc-toolchain "C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -isystem "C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sysroot\usr\include\arm-linux-androideabi" -DANDROID_API_=16 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp\Lump_libil2cpp_os.cpp" -o "C:/Users/SPARTAN-117/Documents/ComeDulces2D/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/B62EF9F701951AA05FA343FBC7D2E43F.o"

    en Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)

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

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

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

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

    stderr:

    exception no controlada: Unity.IL2CPP.Building.BuilderFailedException: In file included from C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp\Lump_libil2cpp_os.cpp:72:

    In file included from C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity\AtomicQueue.cpp:6:

    In file included from C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps.h:121:

    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:622:17: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "r2", "r3"
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:653:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:690:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:724:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:755:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r0", "r1", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:793:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:833:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:875:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp/..................\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:917:27: error: asm-specifier for input or output variable conflicts with asm clobber list

    1. : "cc", "memory", "r2", "r3"
    2. ^
    9 errors generated.

    Invocation was: Executable: "C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"

    Arguments: -DNET_4_0 -DUNITY_AOT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D_linux -DSTDC_FORMAT_MACROS -I"C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\2019.1.6f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\2019.1.6f1\Editor\Data\il2cpp\external\bdwgc\include" -I"." -I"C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\llvm-libc++\include" -I"C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\llvm-libc++abi\include" -I"C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\android\support\include" -c -g -DNDEBUG -fexceptions -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 "C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sysroot" -gcc-toolchain "C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -isystem "C:\Program Files\2019.1.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sysroot\usr\include\arm-linux-androideabi" -DANDROID_API_=16 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "C:\Users\SPARTAN-117\Documents\ComeDulces2D\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp\Lump_libil2cpp_os.cpp" -o "C:/Users/SPARTAN-117/Documents/ComeDulces2D/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/B62EF9F701951AA05FA343FBC7D2E43F.o"

    en Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)

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

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

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

    en 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:496) UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477) 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)

    =============================== Exception: C:\Program Files\2019.1.6f1\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[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:496) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477) UnityEditorInternal.IL2CPPBuilder.Run () (at C:/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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63) UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :0) UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281) UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    =============================================================

    Build completed with a result of 'Failed' UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    ============================================================

    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)

    Nota: Tengo los textos en español del Juego y uso una Laptop Windows 10 Pro con Procesador AMD Ryzen 5u. El unity esta instalado en el Disco Solido que ya solo le queda 9 GB de espacio.

    Y tambien tengo instalado el SDK, JDK y NDK de Android Studio. Use tambien las rutas tanto de Unity como las rutas de (Android Studio) y tambien da error.

    Version de Unity 2019.1.6f1



    build_setting.PNG player_setting_configuracion.PNG preferences.PNG
     
  23. guilhermewinwin

    guilhermewinwin

    Joined:
    Jul 3, 2019
    Posts:
    1
    Hello I read all answers here and don't find anything like my problem

    I try to BUILD with IL2CPP and BOOM

    Exception: C:\Program Files\Unity\Hub\Editor\2018.3.13f1\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[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/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 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 (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 <f3fabed17af2442481d0f39cf9216fcb>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f3fabed17af2442481d0f39cf9216fcb>: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 <f3fabed17af2442481d0f39cf9216fcb>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <f3fabed17af2442481d0f39cf9216fcb>: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:286)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Failed running C:\Program Files\Unity\Hub\Editor\2018.3.13f1\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="Debug" --outputpath="C:\MAPBOX-TESTING\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\MAPBOX-TESTING\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2018.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2018.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="F:/SDK/ndk-r16b/android-ndk-r16b" --map-file-parser="C:\Program Files\Unity\Hub\Editor\2018.3.13f1\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="C:\MAPBOX-TESTING\Temp\StagingArea\assets\bin\Data\Managed" --generatedcppdir="C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: C:\MAPBOX-TESTING\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: C:\MAPBOX-TESTING\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 653 of which compiled: 108
    Time Compile: 9549 milliseconds Il2CppTypeDefinitions.cpp
    Time Compile: 8835 milliseconds Il2CppInvokerTable.cpp
    Time Compile: 8153 milliseconds Il2CppAttributes.cpp
    Time Compile: 5743 milliseconds Il2CppMetadataUsage.cpp
    Time Compile: 5214 milliseconds Bulk_Assembly-CSharp_6.cpp
    Time Compile: 4904 milliseconds Bulk_Assembly-CSharp_1.cpp
    Time Compile: 4482 milliseconds Bulk_Generics_22.cpp
    Time Compile: 4430 milliseconds Bulk_Generics_3.cpp
    Time Compile: 4366 milliseconds GenericMethods1.cpp
    Time Compile: 4258 milliseconds Bulk_Assembly-CSharp_2.cpp
    Total compilation time: 23393 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: F:\SDK\ndk-r16b\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\psyma\AppData\Local\Temp\tmpDC53.tmp" -o "C:\MAPBOX-TESTING\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_0BBDCFF835B1636C1F8F5BC6AB5BAAD6\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "F:\SDK\ndk-r16b\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "F:\SDK\ndk-r16b\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "F:\SDK\ndk-r16b\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -rdynamic -fuse-ld=gold.exe

    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:22071: error: undefined reference to 'GetBlendShapesInfo'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:22796: error: undefined reference to 'IsARKitFaceTrackingConfigurationSupported'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:22904: error: undefined reference to 'IsARKitSessionConfigurationSupported'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:23022: error: undefined reference to 'IsARKitWorldTrackingSessionConfigurationSupported'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26740: error: undefined reference to 'unity_CreateNativeARSession'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26771: error: undefined reference to 'session_SetSessionCallbacks'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26793: error: undefined reference to 'session_SetPlaneAnchorCallbacks'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26815: error: undefined reference to 'session_SetUserAnchorCallbacks'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26837: error: undefined reference to 'session_SetFaceAnchorCallbacks'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26853: error: undefined reference to 'StartWorldTrackingSession'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26872: error: undefined reference to 'StartWorldTrackingSessionWithOptions'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26891: error: undefined reference to 'StartSession'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26910: error: undefined reference to 'StartSessionWithOptions'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26929: error: undefined reference to 'StartFaceTrackingSession'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26948: error: undefined reference to 'StartFaceTrackingSessionWithOptions'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26961: error: undefined reference to 'PauseSession'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26971: error: undefined reference to 'HitTest'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26984: error: undefined reference to 'GetLastHitTestResult'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27003: error: undefined reference to 'GetVideoTextureHandles'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27014: error: undefined reference to 'GetAmbientIntensity'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27025: error: undefined reference to 'GetTrackingQuality'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27036: error: undefined reference to 'GetARPointCloud'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27047: error: undefined reference to 'SetCameraNearFar'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27057: error: undefined reference to 'CapturePixelData'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27067: error: undefined reference to 'SessionAddUserAnchor'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27082: error: undefined reference to 'SessionRemoveUserAnchor'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    em Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    em Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    em il2cpp.Program.DoRun(String[] args)
    em il2cpp.Program.Run(String[] args)
    em il2cpp.Program.Main(String[] args)
    stderr:

    Exce��o Sem Tratamento: Unity.IL2CPP.Building.BuilderFailedException: F:\SDK\ndk-r16b\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\psyma\AppData\Local\Temp\tmpDC53.tmp" -o "C:\MAPBOX-TESTING\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_0BBDCFF835B1636C1F8F5BC6AB5BAAD6\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "F:\SDK\ndk-r16b\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "F:\SDK\ndk-r16b\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "F:\SDK\ndk-r16b\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -rdynamic -fuse-ld=gold.exe

    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:22071: error: undefined reference to 'GetBlendShapesInfo'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:22796: error: undefined reference to 'IsARKitFaceTrackingConfigurationSupported'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:22904: error: undefined reference to 'IsARKitSessionConfigurationSupported'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:23022: error: undefined reference to 'IsARKitWorldTrackingSessionConfigurationSupported'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26740: error: undefined reference to 'unity_CreateNativeARSession'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26771: error: undefined reference to 'session_SetSessionCallbacks'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26793: error: undefined reference to 'session_SetPlaneAnchorCallbacks'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26815: error: undefined reference to 'session_SetUserAnchorCallbacks'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26837: error: undefined reference to 'session_SetFaceAnchorCallbacks'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26853: error: undefined reference to 'StartWorldTrackingSession'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26872: error: undefined reference to 'StartWorldTrackingSessionWithOptions'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26891: error: undefined reference to 'StartSession'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26910: error: undefined reference to 'StartSessionWithOptions'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26929: error: undefined reference to 'StartFaceTrackingSession'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26948: error: undefined reference to 'StartFaceTrackingSessionWithOptions'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26961: error: undefined reference to 'PauseSession'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26971: error: undefined reference to 'HitTest'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:26984: error: undefined reference to 'GetLastHitTestResult'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27003: error: undefined reference to 'GetVideoTextureHandles'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27014: error: undefined reference to 'GetAmbientIntensity'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27025: error: undefined reference to 'GetTrackingQuality'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27036: error: undefined reference to 'GetARPointCloud'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27047: error: undefined reference to 'SetCameraNearFar'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27057: error: undefined reference to 'CapturePixelData'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27067: error: undefined reference to 'SessionAddUserAnchor'
    C:\MAPBOX-TESTING\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_7.cpp:27082: error: undefined reference to 'SessionRemoveUserAnchor'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    em Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    em Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    em il2cpp.Program.DoRun(String[] args)
    em il2cpp.Program.Run(String[] args)
    em 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: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)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Can someone here help me?
     
  24. Thoy

    Thoy

    Joined:
    Mar 11, 2018
    Posts:
    1
  25. prabudbz

    prabudbz

    Joined:
    Aug 1, 2015
    Posts:
    2
    I have similar il2cpp errors on unity 2017.4.31 with 64bit build

    Scripting Backend: IL2CPP
    ARMv7: Checked
    ARM64: Checked
    x86: Unchecked
    NDK: r13b

    Build is success with ARM64 unchecked, it fails and gives these 2 errors when ARM64 is checked.

    Failed running C:\Unity\2017.4.31f1\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="H:\Workspace\Unity 2018\Mandala\Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="H:\Workspace\Unity 2018\Mandala\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Unity\2017.4.31f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Unity\2017.4.31f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="F:/Android/ndkr13b" --map-file-parser="C:\Unity\2017.4.31f1\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --assembly="H:\Workspace\Unity 2018\Mandala\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp-firstpass.dll" --assembly="H:\Workspace\Unity 2018\Mandala\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll" --assembly="H:\Workspace\Unity 2018\Mandala\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.UI.dll" --assembly="H:\Workspace\Unity 2018\Mandala\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dll" --generatedcppdir="H:\Workspace\Unity 2018\Mandala\Temp\StagingArea\Il2Cpp\il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain.
    Output directory: H:\Workspace\Unity 2018\Mandala\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: H:\Workspace\Unity 2018\Mandala\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 487 of which compiled: 487
    Time Compile: 59321 milliseconds Bulk_mscorlib_7.cpp
    Time Compile: 48441 milliseconds Bulk_mscorlib_8.cpp
    Time Compile: 39859 milliseconds GenericMethods0.cpp
    Time Compile: 39433 milliseconds Bulk_mscorlib_6.cpp
    Time Compile: 39113 milliseconds Bulk_Mono.Security_0.cpp
    Time Compile: 38150 milliseconds Bulk_mscorlib_5.cpp
    Time Compile: 37528 milliseconds Bulk_System_0.cpp
    Time Compile: 34971 milliseconds Bulk_Assembly-CSharp_1.cpp
    Time Compile: 34938 milliseconds Bulk_Assembly-CSharp_0.cpp
    Time Compile: 32735 milliseconds Bulk_UnityEngine.UI_0.cpp
    Total compilation time: 244480 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: F:\Android\ndkr13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\prabu\AppData\Local\Temp\tmp5D89.tmp" -o "H:\Workspace\Unity 2018\Mandala\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_04CCBA045D8110F31C5481CAFBFB17EB\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "F:\Android\ndkr13b\platforms\android-16\arch-arm" -gcc-toolchain "F:\Android\ndkr13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "F:\Android\ndkr13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="H:\Workspace\Unity 2018\Mandala\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_04CCBA045D8110F31C5481CAFBFB17EB\libil2cpp.map" -rdynamic -fPIE -pie -fuse-ld=bfd.exe

    clang++.exe: warning: argument unused during compilation: '-pie'
    H:\Workspace\Unity 2018\Mandala\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\357D6BF5E4814720E78DB6BCABE6D557.o: In function `OtherMessagesBinding__sendMessageOther_m4014967022':
    H:\Workspace\Unity 2018\Mandala\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_0.cpp:995: undefined reference to `_sendMessageOther'
    H:\Workspace\Unity 2018\Mandala\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_0.cpp:995: undefined reference to `_sendMessageOther'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner(CppProgramBuilder builder, 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: F:\Android\ndkr13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\prabu\AppData\Local\Temp\tmp5D89.tmp" -o "H:\Workspace\Unity 2018\Mandala\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_04CCBA045D8110F31C5481CAFBFB17EB\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "F:\Android\ndkr13b\platforms\android-16\arch-arm" -gcc-toolchain "F:\Android\ndkr13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "F:\Android\ndkr13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="H:\Workspace\Unity 2018\Mandala\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_04CCBA045D8110F31C5481CAFBFB17EB\libil2cpp.map" -rdynamic -fPIE -pie -fuse-ld=bfd.exe

    clang++.exe: warning: argument unused during compilation: '-pie'
    H:\Workspace\Unity 2018\Mandala\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\357D6BF5E4814720E78DB6BCABE6D557.o: In function `OtherMessagesBinding__sendMessageOther_m4014967022':
    H:\Workspace\Unity 2018\Mandala\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_0.cpp:995: undefined reference to `_sendMessageOther'
    H:\Workspace\Unity 2018\Mandala\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_0.cpp:995: undefined reference to `_sendMessageOther'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner(CppProgramBuilder builder, 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: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)

    Exception: C:\Unity\2017.4.31f1\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)

    Need help solving this please...
     
  26. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    This error indicates there is a function named _sendMessageOther in the C# code in your project which is an extern method - meaning it must be defined in a native library. That native library is not present in the build, so this error occurs.

    Should this method exist in a native library? If so compile that native library for arm64 and include it in the Unity project. If it should not exist, you can prevent Unity from compiling it using #if statements. See https://docs.unity3d.com/Manual/PlatformDependentCompilation.html for details.
     
  27. joaoruirego2

    joaoruirego2

    Joined:
    Aug 28, 2019
    Posts:
    22
    I have this problem! Please help!!!! It only works in Mono!

    Exception: /Applications/Unity/Hub/Editor/2019.2.2f1/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: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:501)
    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:484)
    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 <09a970ae0311447c9749d65ec2409482>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <09a970ae0311447c9749d65ec2409482>: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 <09a970ae0311447c9749d65ec2409482>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <09a970ae0311447c9749d65ec2409482>: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:
    4,654
    Can you provide more details from the editor log file? There should be another error with more specific information.
     
  29. tabisharooj

    tabisharooj

    Joined:
    Nov 26, 2018
    Posts:
    2
    I am using Unity 2018.2.6.
    When I build my project Mono its working fine but when I am building with Il2CPP for 64 bit support then failed to build project and Here is error

    Exception: C:\Unity2018\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:380)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection`1 userAssemblies, System.String outputDirectory, System.String workingDirectory, Boolean platformSupportsManagedDebugging) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:361)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:178)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 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)
    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.Build.Reporting.BuildReport report)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties)
    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.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:287)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  30. ABORHAN

    ABORHAN

    Joined:
    Jan 16, 2019
    Posts:
    3
    I have the same error like all of you.Because Unity getting worse .
    here is the errors ı take all the time
    Exception: D:\Unityy\2019.2.3f1\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:128)
    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:71)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:503)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (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 (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:63)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <5557b445b4634c46b2ec8376c040bd34>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <5557b445b4634c46b2ec8376c040bd34>: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 <5557b445b4634c46b2ec8376c040bd34>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <5557b445b4634c46b2ec8376c040bd34>: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:281)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)


    Failed running D:\Unityy\2019.2.3f1\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\borha\OneDrive\Belgeler\Deneme1-2-3\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\borha\OneDrive\Belgeler\Deneme1-2-3\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="D:/Unityy/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="D:/Unityy/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/android-ndk-r16b/android-ndk-r16b" --profiler-report --map-file-parser=D:/Unityy/2019.2.3f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe --directory=C:/Users/borha/OneDrive/Belgeler/Deneme1-2-3/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=C:/Users/borha/OneDrive/Belgeler/Deneme1-2-3/Temp/StagingArea/Il2Cpp/il2cppOutput
    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: C:\Users\borha\OneDrive\Belgeler\Deneme1-2-3\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: C:\Users\borha\OneDrive\Belgeler\Deneme1-2-3\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 206 of which compiled: 0
    Total compilation time: 181 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\android-ndk-r16b\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\borha\AppData\Local\Temp\tmpE6CE.tmp" -o "C:\Users\borha\OneDrive\Belgeler\Deneme1-2-3\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_9C2448839F2ED5AB7E9B6ECEC5516FCB\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\android-ndk-r16b\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "C:\android-ndk-r16b\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\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -latomic -llog -rdynamic -fuse-ld=gold.exe
    C:\Users\borha\OneDrive\Belgeler\Deneme1-2-3\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp.cpp:19562: error: undefined reference to '_GetCurrentMediaTime'
    C:\Users\borha\OneDrive\Belgeler\Deneme1-2-3\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp.cpp:19562: error: undefined reference to '_GetCurrentMediaTime'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    konum: Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    konum: Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    konum: il2cpp.Program.DoRun(String[] args)
    konum: il2cpp.Program.Run(String[] args)
    konum: il2cpp.Program.Main(String[] args)
    stderr:
    ��lenmeyen �zel Durum: Unity.IL2CPP.Building.BuilderFailedException: C:\android-ndk-r16b\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\borha\AppData\Local\Temp\tmpE6CE.tmp" -o "C:\Users\borha\OneDrive\Belgeler\Deneme1-2-3\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_9C2448839F2ED5AB7E9B6ECEC5516FCB\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\android-ndk-r16b\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "C:\android-ndk-r16b\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\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -latomic -llog -rdynamic -fuse-ld=gold.exe
    C:\Users\borha\OneDrive\Belgeler\Deneme1-2-3\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp.cpp:19562: error: undefined reference to '_GetCurrentMediaTime'
    C:\Users\borha\OneDrive\Belgeler\Deneme1-2-3\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp.cpp:19562: error: undefined reference to '_GetCurrentMediaTime'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    konum: Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    konum: Unity.IL2CPP.Building.CppProgramBuilder.Build(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: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)

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

    NinjaPaimen

    Joined:
    Jul 2, 2018
    Posts:
    1
    OK, so i got these errors and i don't know what to do.

    Edit: Using Unity 2019.2.3f1 on Linux

    1st error:

    Failed running /home/samuel/Unity/Hub/Editor/2019.2.3f1/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="/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/" --profiler-report --map-file-parser="/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/Tools/MapFileParser/MapFileParser" --directory="/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: /home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a
    Cache directory: /home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/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/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/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/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/libil2cpp" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/libil2cpp" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/external/xxHash" -I"/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include" -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 -fPIC -Os --sysroot "/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sysroot" -gcc-toolchain "/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64" -target armv7-none-linux-androideabi -isystem "/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/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 "/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppCompilerCalculateTypeValues.cpp" -o "/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/D13AF452C1DFD1D1CDD0A6A5963F4D1E.o"', CurrentDirectory='', Native error= Access denied
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <9f8c4786222746238eb929db40bf8dd1>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <9f8c4786222746238eb929db40bf8dd1>: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 <36f0b54fccbf44cfb0c139ff297bc52b>:0
    at Unity.IL2CPP.Building.BuildShell.Execute (Unity.IL2CPP.Shell+ExecuteArgs args) [0x00027] in <eacd2842a004401f823f49d03160963f>:0
    at Unity.IL2CPP.Building.CompilationInvocation.Execute () [0x00007] in <eacd2842a004401f823f49d03160963f>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.IntermediateObjectFileCompilationData data) [0x00053] in <eacd2842a004401f823f49d03160963f>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[D,T].<>m__0 (System.Object o) [0x00032] in <eacd2842a004401f823f49d03160963f>: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 <eacd2842a004401f823f49d03160963f>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles (System.Collections.Generic.IEnumerable`1[T] sourceFilesToCompile, Unity.IL2CPP.Building.Statistics.IBuildStatisticsCollector statisticsCollector) [0x0015b] in <eacd2842a004401f823f49d03160963f>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00201] in <eacd2842a004401f823f49d03160963f>:0
    at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00001] in <eacd2842a004401f823f49d03160963f>:0
    at il2cpp.Program.DoRun (System.String[] args) [0x006d0] in <9d60e0afd0434dff8722b5f73ebfa765>:0
    at il2cpp.Program.Run (System.String[] args) [0x00020] in <9d60e0afd0434dff8722b5f73ebfa765>:0
    at il2cpp.Program.Main (System.String[] args) [0x00002] in <9d60e0afd0434dff8722b5f73ebfa765>:0
    ---> (Inner Exception #0) System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/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/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/libil2cpp" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/libil2cpp" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/external/xxHash" -I"/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include" -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 -fPIC -Os --sysroot "/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sysroot" -gcc-toolchain "/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64" -target armv7-none-linux-androideabi -isystem "/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/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 "/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppCompilerCalculateTypeValues.cpp" -o "/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/D13AF452C1DFD1D1CDD0A6A5963F4D1E.o"', CurrentDirectory='', Native error= Access denied
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <9f8c4786222746238eb929db40bf8dd1>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <9f8c4786222746238eb929db40bf8dd1>: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 <36f0b54fccbf44cfb0c139ff297bc52b>:0
    at Unity.IL2CPP.Building.BuildShell.Execute (Unity.IL2CPP.Shell+ExecuteArgs args) [0x00027] in <eacd2842a004401f823f49d03160963f>:0
    at Unity.IL2CPP.Building.CompilationInvocation.Execute () [0x00007] in <eacd2842a004401f823f49d03160963f>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.IntermediateObjectFileCompilationData data) [0x00053] in <eacd2842a004401f823f49d03160963f>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[D,T].<>m__0 (System.Object o) [0x00032] in <eacd2842a004401f823f49d03160963f>:0 <---

    ---> (Inner Exception #1) System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/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/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/libil2cpp" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/libil2cpp" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/external/xxHash" -I"/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include" -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 -fPIC -Os --sysroot "/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sysroot" -gcc-toolchain "/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64" -target armv7-none-linux-androideabi -isystem "/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/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 "/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppTypeDefinitions.c" -o "/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/653D06876935031AB43A730ADF8117A2.o"', CurrentDirectory='', Native error= Access denied
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <9f8c4786222746238eb929db40bf8dd1>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <9f8c4786222746238eb929db40bf8dd1>: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 <36f0b54fccbf44cfb0c139ff297bc52b>:0
    at Unity.IL2CPP.Building.BuildShell.Execute (Unity.IL2CPP.Shell+ExecuteArgs args) [0x00027] in <eacd2842a004401f823f49d03160963f>:0
    at Unity.IL2CPP.Building.CompilationInvocation.Execute () [0x00007] in <eacd2842a004401f823f49d03160963f>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.IntermediateObjectFileCompilationData data) [0x00053] in <eacd2842a004401f823f49d03160963f>:0
    at Unity.IL2CPP.Building.ParallelFor+<RunWithResult>c__AnonStorey1`2[D,T].<>m__0 (System.Object o) [0x00032] in <eacd2842a004401f823f49d03160963f>:0 <---

    ---> (Inner Exception #2) System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/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/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/libil2cpp" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/libil2cpp" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/il2cpp/external/xxHash" -I"/home/samuel/Asiakirjat/Coding/DVDGame/DVDScreensaverGame/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward" -I"/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include" -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 -fPIC -Os --sysroot "/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sysroot" -gcc-toolchain "/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64" -target armv7-none-linux-androideabi -isystem "/home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidP<message truncated>

    2nd error:

    Exception: /home/samuel/Unity/Hub/Editor/2019.2.3f1/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 /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:71)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:503)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:484)
    UnityEditorInternal.IL2CPPBuilder.Run () (at /home/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 /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <5557b445b4634c46b2ec8376c040bd34>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <5557b445b4634c46b2ec8376c040bd34>: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 <5557b445b4634c46b2ec8376c040bd34>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <5557b445b4634c46b2ec8376c040bd34>: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 /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  32. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    @tabisharooj

    Please look in the editor log file for additional error messages and post the details here. This is a generic error message, so we can't use it to determine the cause of the issue.
     
  33. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    @ABORHAN

    This error message indicates that there is an extern method in C# code in the project named _GetCurrentMediaTime. This method must exist in a native library. If it should not exist in a native library for Android, please use #if statements to prevent it from being compiled on Android. See this manual page for details: https://docs.unity3d.com/Manual/PlatformDependentCompilation.html
     
  34. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    @NinjaPaimen

    It looks like the Unity editor cannot access the clang++ compiler in the Android NDK. It seems to be looking in this location: /home/samuel/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++

    Does the file exist at that location, and does your current user have access to it?
     
  35. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    393
    I getting an error like win32execption no such directory. my OS is Mac and unity version is 2019.2.0f


    1. Failed running /Applications/Unity/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/wolkydj/Desktop/Unity Projects/BremenARBook/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/Users/wolkydj/Desktop/Unity Projects/BremenARBook/Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/Users/wolkydj/Desktop/android-ndk-r16b" --profiler-report --map-file-parser="/Applications/Unity/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/wolkydj/Desktop/Unity Projects/BremenARBook/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/Users/wolkydj/Desktop/Unity Projects/BremenARBook/Temp/StagingArea/Il2Cpp/il2cppOutput"

      stdout:
      Building libil2cpp.so with AndroidToolChain
      Output directory: /Users/wolkydj/Desktop/Unity Projects/BremenARBook/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a
      Cache directory: /Users/wolkydj/Desktop/Unity Projects/BremenARBook/Library/il2cpp_android_armeabi-v7a/il2cpp_cache
      il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. (No such file or directory) (No such file or directory) (No such file or directory) (No such file or directory) ---> System.ComponentModel.Win32Exception: No such file or directory
      at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
      at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
      at System.Diagnostics.Process.Start()
      at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
      at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
      at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
      --- End of inner exception stack trace ---
      at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
      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)
      ---> (Inner Exception #0) System.ComponentModel.Win32Exception (2): No such file or directory
      at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
      at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
      at System.Diagnostics.Process.Start()
      at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
      at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
      at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

      ---> (Inner Exception #1) System.ComponentModel.Win32Exception (2): No such file or directory
      at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
      at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
      at System.Diagnostics.Process.Start()
      at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
      at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
      at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

      ---> (Inner Exception #2) System.ComponentModel.Win32Exception (2): No such file or directory
      at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
      at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
      at System.Diagnostics.Process.Start()
      at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
      at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
      at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

      ---> (Inner Exception #3) System.ComponentModel.Win32Exception (2): No such file or directory
      at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
      at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
      at System.Diagnostics.Process.Start()
      at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
      at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
      at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

      stderr:

      Unhandled Exception: System.AggregateException: One or more errors occurred. (No such file or directory) (No such file or directory) (No such file or directory) (No such file or directory) ---> System.ComponentModel.Win32Exception: No such file or directory
      at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
      at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
      at System.Diagnostics.Process.Start()
      at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
      at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
      at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
      --- End of inner exception stack trace ---
      at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
      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) in /Users/builduser/buildslave/unity/build/External/il2cpp/il2cpp/il2cppcore/Program.cs:line 24

      UnityEngine.Debug:LogError(Object)
      UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:126)
      UnityEditorInternal.Runner:RunNetCoreProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:77)
      UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:500)
      UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:483)
      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)
     
  36. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    The error message does not indicate which file cannot be found, unfortunately. I suspect it is something in the Android NDK though. It might be worthwhile to attempt to reinstall the Android NDK on this computer.
     
  37. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    393
    my ndk is r16b and I located it to unity. but giving error again.
     
  38. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    Can you try a build with an empty project? It also might be worthwhile to try an empty project with a newer version of Unity. This might help us determine if the issue is related to the Unity or NDK installation or if it is specific to your project.
     
  39. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    393
    found the error. my fool. NDK version was Windows and changed with Mac. then works. thanks a lot
     
  40. craniolabs

    craniolabs

    Joined:
    Jul 3, 2018
    Posts:
    2
    I've figured it out, guys. My project uses Firebase and for some reason the "link.xml" file was duplicated. I just needed to delete one of them to solve my issue. It took forever, but alas, hope it helps!
     
  41. rommel89

    rommel89

    Joined:
    Jul 4, 2019
    Posts:
    2
    para mi error con Unity 2019.1.6f1

    tenia que utilizar NDK r16 y no la NDK r20

    y con esto se soluciono
     
  42. SpecsyGeek

    SpecsyGeek

    Joined:
    Jul 5, 2019
    Posts:
    3
    @JoshPeterson
    I got this error while building for the first time with 2019
    .1.8

    Could not find file 'C:\Users\User\Documents\New Unity Project (2)\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so'.

    What should I do now?
     
    Last edited: Sep 20, 2019
  43. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    I'm not sure why that happens. Can you try to build a new empty project with Unity 2019.1.8? It almost seems like something is corrupt in your Unity installation.
     
  44. SpecsyGeek

    SpecsyGeek

    Joined:
    Jul 5, 2019
    Posts:
    3
    @JoshPeterson
    I tried to build for arm64 and it worked successfully, but failed with armv7.

    Here is the error:

    Failed running G:\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="C:\Users\User\Documents\New Unity Project (2)\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\User\Documents\New Unity Project (2)\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="G:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="G:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="G:/Program Files/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="G:/Program Files/Unity/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="C:/Users/User/Documents/New Unity Project (2)/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="C:/Users/User/Documents/New Unity Project (2)/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:

    Building libil2cpp.so with AndroidToolChain

    Output directory: C:\Users\User\Documents\New Unity Project (2)\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a

    Cache directory: C:\Users\User\Documents\New Unity Project (2)\Library\il2cpp_android_armeabi-v7a\il2cpp_cache

    ObjectFiles: 105 of which compiled: 0

    Total compilation time: 8426 milliseconds.

    il2cpp.exe didn't catch exception: System.IO.FileNotFoundException: Could not find file 'C:\Users\User\Documents\New Unity Project (2)\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so'.

    File name: 'C:\Users\User\Documents\New Unity Project (2)\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so'

    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

    at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)

    at Unity.IL2CPP.Building.ToolChains.AndroidToolChain.OnAfterLink(NPath outputFile, CppToolChainContext toolChainContext, Boolean forceRebuild, Boolean verbose)

    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: System.IO.FileNotFoundException: Could not find file 'C:\Users\User\Documents\New Unity Project (2)\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so'.

    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

    at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)

    at Unity.IL2CPP.Building.ToolChains.AndroidToolChain.OnAfterLink(NPath outputFile, CppToolChainContext toolChainContext, Boolean forceRebuild, Boolean verbose)

    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: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:496)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)
    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)





    Exception: G:\Program Files\Unity\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[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:496)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/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 C:/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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)





    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)

     
  45. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    That file should be created by the Unity player build process. So I'm not sure why it is missing. Are there other errors previous to this one? Maybe there is something wrong with the NDK installation that prevents it from working for Armv7.
     
  46. kekenin

    kekenin

    Joined:
    Jan 31, 2019
    Posts:
    1
    Hi,

    same issue as all the others: Crashing when trying to build 64-bit Android project. Tried removing library, didn't help. Also tried creating a new empty project and it produced same error message after failing. Then I tried using manually downloaded NDK 16b, but nothing seems to work. Has anyone succeeded overcoming this issue?

    Here's my error log:

    Win32Exception: ApplicationName='C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\il2cpp/build/il2cpp.exe', CommandLine='--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\Beni\Documents\Lauma\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\Beni\Documents\Lauma\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/Unity/Hub/Editor/2019.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.2.8f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=C:/Users/Beni/Documents/Lauma/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=C:/Users/Beni/Documents/Lauma/Temp/StagingArea/Il2Cpp/il2cppOutput ', CurrentDirectory='C:\Users\Beni\Documents\Lauma\Temp\StagingArea\assets\bin\Data\Managed', Native error= The requested operation requires elevation.

    System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <735c83e43c004ee998f77c68cf8035da>:0)
    System.Diagnostics.Process.Start () (at <735c83e43c004ee998f77c68cf8035da>:0)
    (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    UnityEditor.Utils.Program.Start (System.EventHandler exitCallback) (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:44)
    UnityEditor.Utils.Program.Start () (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:28)
    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:104)
    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:71)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:503)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (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 (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:63)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <24d9b022aa584914af833273ea899103>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <24d9b022aa584914af833273ea899103>: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 <24d9b022aa584914af833273ea899103>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <24d9b022aa584914af833273ea899103>: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:281)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
     
    Last edited: Oct 12, 2019
  47. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    It looks like il2cpp.exe cannot run, so the build process does not even get to the Android NDK. Can you try to run Unity as an administrator account? We've seen similar errors when there is some permissions issue that prevents il2cpp.exe from even starting.
     
  48. Woltus

    Woltus

    Joined:
    Dec 16, 2016
    Posts:
    1
    @JoshPeterson

    I have similiar problem. I'm using Unity 2018.4.9, NDK 16b. Building on monu works, building empty project on il2cpp works too.

    I tried running Unity as an administrator, it didn't help.

    Failed running C:\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="C:\UnityProjects\DrivingSchool\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\UnityProjects\DrivingSchool\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/android-ndk-r16b" --map-file-parser="C:\Unity\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="C:\UnityProjects\DrivingSchool\Temp\StagingArea\assets\bin\Data\Managed" --generatedcppdir="C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: C:\UnityProjects\DrivingSchool\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: C:\UnityProjects\DrivingSchool\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 798 of which compiled: 798
    Time Compile: 49944 milliseconds Bulk_Localization_0.cpp
    Time Compile: 21251 milliseconds Il2CppAttributes.cpp
    Time Compile: 9860 milliseconds Il2CppInvokerTable.cpp
    Time Compile: 7835 milliseconds Il2CppTypeDefinitions.cpp
    Time Compile: 5250 milliseconds Bulk_System.Xml_4.cpp
    Time Compile: 5052 milliseconds Bulk_PluginManager_24.cpp
    Time Compile: 4940 milliseconds Bulk_PluginManager_25.cpp
    Time Compile: 4702 milliseconds Bulk_Generics_38.cpp
    Time Compile: 4421 milliseconds Il2CppMetadataUsage.cpp
    Time Compile: 4370 milliseconds Bulk_Assembly-CSharp_24.cpp
    Total compilation time: 149183 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\Woltus\AppData\Local\Temp\tmpB134.tmp" -o "C:\UnityProjects\DrivingSchool\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_CE2789190D839D689F90113F7E876438\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 -llog -rdynamic -fuse-ld=gold.exe

    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50329: error: undefined reference to 'ThinkingAnalyticsInit'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50303: error: undefined reference to 'TGA_track'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50351: error: undefined reference to 'TGA_timeEvent'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50351: error: undefined reference to 'TGA_timeEvent'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50511: error: undefined reference to 'TGA_logout'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50511: error: undefined reference to 'TGA_logout'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50479: error: undefined reference to 'TGA_identify'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50479: error: undefined reference to 'TGA_identify'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50369: error: undefined reference to 'TGA_user_set'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50369: error: undefined reference to 'TGA_user_set'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50387: error: undefined reference to 'TGA_user_setOnce'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50387: error: undefined reference to 'TGA_user_setOnce'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50405: error: undefined reference to 'TGA_user_add'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50405: error: undefined reference to 'TGA_user_add'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50419: error: undefined reference to 'TGA_user_delete'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50419: error: undefined reference to 'TGA_user_delete'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50433: error: undefined reference to 'TGA_setSuperProperties'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50433: error: undefined reference to 'TGA_setSuperProperties'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50451: error: undefined reference to 'TGA_unsetSuperProperty'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50451: error: undefined reference to 'TGA_unsetSuperProperty'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50465: error: undefined reference to 'TGA_clearSuperProperties'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50465: error: undefined reference to 'TGA_clearSuperProperties'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50521: error: undefined reference to 'TGA_getDeviceId'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50521: error: undefined reference to 'TGA_getDeviceId'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50540: error: undefined reference to 'TGA_getDistinctId'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50540: error: undefined reference to 'TGA_getDistinctId'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50497: error: undefined reference to 'TGA_login'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    w Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    w Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    w il2cpp.Program.DoRun(String[] args)
    w il2cpp.Program.Run(String[] args)
    w il2cpp.Program.Main(String[] args)
    stderr:

    Wyj�tek nieobs�u�ony: Unity.IL2CPP.Building.BuilderFailedException: C:\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\Woltus\AppData\Local\Temp\tmpB134.tmp" -o "C:\UnityProjects\DrivingSchool\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_CE2789190D839D689F90113F7E876438\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 -llog -rdynamic -fuse-ld=gold.exe

    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50329: error: undefined reference to 'ThinkingAnalyticsInit'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50303: error: undefined reference to 'TGA_track'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50351: error: undefined reference to 'TGA_timeEvent'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50351: error: undefined reference to 'TGA_timeEvent'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50511: error: undefined reference to 'TGA_logout'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50511: error: undefined reference to 'TGA_logout'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50479: error: undefined reference to 'TGA_identify'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50479: error: undefined reference to 'TGA_identify'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50369: error: undefined reference to 'TGA_user_set'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50369: error: undefined reference to 'TGA_user_set'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50387: error: undefined reference to 'TGA_user_setOnce'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50387: error: undefined reference to 'TGA_user_setOnce'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50405: error: undefined reference to 'TGA_user_add'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50405: error: undefined reference to 'TGA_user_add'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50419: error: undefined reference to 'TGA_user_delete'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50419: error: undefined reference to 'TGA_user_delete'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50433: error: undefined reference to 'TGA_setSuperProperties'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50433: error: undefined reference to 'TGA_setSuperProperties'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50451: error: undefined reference to 'TGA_unsetSuperProperty'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50451: error: undefined reference to 'TGA_unsetSuperProperty'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50465: error: undefined reference to 'TGA_clearSuperProperties'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50465: error: undefined reference to 'TGA_clearSuperProperties'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50521: error: undefined reference to 'TGA_getDeviceId'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50521: error: undefined reference to 'TGA_getDeviceId'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50540: error: undefined reference to 'TGA_getDistinctId'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50540: error: undefined reference to 'TGA_getDistinctId'
    C:\UnityProjects\DrivingSchool\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_25.cpp:50497: error: undefined reference to 'TGA_login'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    w Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    w Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    w il2cpp.Program.DoRun(String[] args)
    w il2cpp.Program.Run(String[] args)
    w 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:370)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:351)
    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)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Exception: C:\Unity\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[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:370)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:351)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <df45ca7b334d4b918976307f9d26db2e>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <df45ca7b334d4b918976307f9d26db2e>: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 <df45ca7b334d4b918976307f9d26db2e>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <df45ca7b334d4b918976307f9d26db2e>: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:286)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  49. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,654
    The problem here is error: undefined reference to 'ThinkingAnalyticsInit'

    This means ThinkingAnalyticsInit is an extern method in C#. It must have a native implementation for Android. If it does, please make the the native library is in the build. If it should not have an implementation for Android, you can use #if statements to remove it. See https://docs.unity3d.com/Manual/PlatformDependentCompilation.html for details.
     
    Woltus likes this.
  50. UzairHassan11

    UzairHassan11

    Joined:
    Sep 3, 2019
    Posts:
    3
    Hello Josh, I happen to have same errors
    1st one

    Failed running C:\Program Files\Unity 2018.4.2f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="legacyunity" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity 2018.4.2f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity 2018.4.2f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Users/Farhan/Downloads/android-ndk-r16b" --map-file-parser="C:\Program Files\Unity 2018.4.2f1\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\assets\bin\Data\Managed" --generatedcppdir="C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\Il2Cpp\il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 592 of which compiled: 3
    Time Compile: 5894 milliseconds Bulk_Assembly-CSharp_4.cpp
    Time Compile: 2591 milliseconds Il2CppMetadataUsage.cpp
    Time Compile: 1033 milliseconds Il2CppMetadataRegistration.cpp
    Total compilation time: 6361 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\Farhan\Downloads\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\Farhan\AppData\Local\Temp\tmp6D7B.tmp" -o "C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_A8392992B0039BE6E36C78DC32A61002\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\Farhan\Downloads\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\Farhan\Downloads\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\Farhan\Downloads\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -rdynamic -fuse-ld=gold.exe

    C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_RTVoice_0.cpp:17189: error: undefined reference to 'Stop'
    C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_RTVoice_0.cpp:17199: error: undefined reference to 'GetVoices'
    C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_RTVoice_0.cpp:17221: error: undefined reference to 'Speak'
    C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_RTVoice_0.cpp:17199: error: undefined reference to 'GetVoices'
    C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_RTVoice_0.cpp:17189: error: undefined reference to 'Stop'
    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: C:\Users\Farhan\Downloads\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\Farhan\AppData\Local\Temp\tmp6D7B.tmp" -o "C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_A8392992B0039BE6E36C78DC32A61002\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\Farhan\Downloads\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\Farhan\Downloads\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\Farhan\Downloads\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -rdynamic -fuse-ld=gold.exe

    C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_RTVoice_0.cpp:17189: error: undefined reference to 'Stop'
    C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_RTVoice_0.cpp:17199: error: undefined reference to 'GetVoices'
    C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_RTVoice_0.cpp:17221: error: undefined reference to 'Speak'
    C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_RTVoice_0.cpp:17199: error: undefined reference to 'GetVoices'
    C:\Users\Farhan\Desktop\Current Project\Stickman Sniper\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_RTVoice_0.cpp:17189: error: undefined reference to 'Stop'
    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: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)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)


    and 2nd is


    Exception: C:\Program Files\Unity 2018.4.2f1\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:368)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, Boolean platformSupportsManagedDebugging) (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 (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 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)
    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.Build.Reporting.BuildReport report)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties)
    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.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:286)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
unityunity