Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Cannot build IL2CPP to Android - "il2cpp.exe did not run properly!"

Discussion in 'Editor & General Support' started by jackmillington1994, Jun 13, 2019.

  1. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,518
    Can you copy paste full path of your export? Also copy paste the error, maybe it's different error.
     
  2. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,277
  3. dushyantbhatt

    dushyantbhatt

    Joined:
    Jun 14, 2016
    Posts:
    6
    Worked for mee !!!
     
  4. MianAbdul

    MianAbdul

    Joined:
    Mar 31, 2017
    Posts:
    17
    Failed running D:\Unity_Installed\Unity_2019.2.0f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="D:\Projects\7_GameDistrict\Color Sort 3D\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\Projects\7_GameDistrict\Color Sort 3D\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="D:/Unity_Installed/Unity_2019.2.0f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="D:/Unity_Installed/Unity_2019.2.0f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="D:/android-ndk-r16b-windows-x86_64/android-ndk-r16b" --profiler-report --map-file-parser=D:/Unity_Installed/Unity_2019.2.0f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe --directory="D:/Projects/7_GameDistrict/Color Sort 3D/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="D:/Projects/7_GameDistrict/Color Sort 3D/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:
    IL2CPP error for method 'System.Void Unity.Notifications.Android.AndroidNotificationCenter::RegisterNotificationChannel(Unity.Notifications.Android.AndroidNotificationChannel)' in assembly 'D:\Projects\7_GameDistrict\Color Sort 3D\Temp\StagingArea\assets\bin\Data\Managed\Unity.Notifications.Android.dll'
    Additional information: SafeArray element type Int64 is not supported.
    il2cpp.exe didn't catch exception: System.NotSupportedException: SafeArray element type Int64 is not supported.
    at Unity.IL2CPP.Marshaling.MarshalInfoWriters.ComSafeArrayMarshalInfoWriter.GetElementVariantType(MetadataType metadataType)
    at Unity.IL2CPP.Marshaling.MarshalInfoWriters.ComSafeArrayMarshalInfoWriter..ctor(ArrayType type)
    at Unity.IL2CPP.Marshaling.MarshalDataCollector.CreateMarshalInfoWriter(TypeReference type, MarshalType marshalType, MarshalInfo marshalInfo, Boolean useUnicodeCharSet, Boolean forByReferenceType, Boolean forFieldMarshaling, Boolean forReturnValue, Boolean forNativeToManagedWrapper, HashSet`1 typesForRecursiveFields)
    at Unity.IL2CPP.Marshaling.MarshalDataCollector.<>c__DisplayClass1_0.<CreateMarshalInfoWriter>b__1(FieldDefinition field)
    at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
    at Unity.IL2CPP.Marshaling.MarshalDataCollector.CreateMarshalInfoWriter(TypeReference type, MarshalType marshalType, MarshalInfo marshalInfo, Boolean useUnicodeCharSet, Boolean forByReferenceType, Boolean forFieldMarshaling, Boolean forReturnValue, Boolean forNativeToManagedWrapper, HashSet`1 typesForRecursiveFields)
    at Unity.IL2CPP.Marshaling.BodyWriters.InteropMarshaler.MarshalInfoWriterFor(MarshaledParameter parameter)
    at Unity.IL2CPP.Marshaling.BodyWriters.InteropMethodInfo..ctor(MethodReference interopMethod, MethodReference methodForParameterNames, InteropMarshaler marshaler)
    at Unity.IL2CPP.Marshaling.BodyWriters.ManagedToNative.PInvokeMethodBodyWriter..ctor(MethodReference interopMethod)
    at Unity.IL2CPP.MethodWriter.WriteMethodForDelegatePInvokeIfNeeded(IGeneratedMethodCodeWriter writer, MethodReference method, IInteropDataCollector interopDataCollector)
    at Unity.IL2CPP.SourceWriter.WriteMarshalingDefinitions(IGeneratedMethodCodeWriter writer, TypeReference type, IInteropDataCollector interopDataCollector)
    at Unity.IL2CPP.SourceWriter.<>c__DisplayClass7_0.<WriteMethodSourceFiles>b__0(IGeneratedMethodCodeWriter writer, TypeReference type)
    at 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, Action`2 writeEnd)
    at Unity.IL2CPP.SourceWriter.WriteEqualSizedChunks[T](NPath outputDir, IEnumerable`1 items, String fileName, Int64 chunkSize, Action`2 writeItemAction, SourceWritingContext sourceWritingContext, Action`2 writeEnd)
    at Unity.IL2CPP.SourceWriter.WriteMethodSourceFiles(NPath outputDirectory, SourceWritingContext sourceWritingContext, String fileName, IEnumerable`1 typeList, IMethodCollector methodCollector, Boolean writeMarshalingDefinitions)
    at Unity.IL2CPP.SourceWriter.Write(NPath outputDir, SourceWritingContext sourceWritingContext, AssemblyDefinition assemblyDefinition, IMethodCollector methodCollector)
    at Unity.IL2CPP.AssemblyConverter.Apply()
    at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(IEnumerable`1 assemblyDirectories, IEnumerable`1 explicitAssemblies, NPath outputDir, NPath dataFolder, NPath symbolsFolder, NPath executableAssembiesFolder, NPath monoLibFolder, NPath monoEtcFolder, NPath[] searchDirectories, String entryAssemblyName, NPath[] extraTypesFiles)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.Program.Main(String[] args)
    stderr:

    Unhandled Exception: System.NotSupportedException: SafeArray element type Int64 is not supported.
    at Unity.IL2CPP.Marshaling.MarshalInfoWriters.ComSafeArrayMarshalInfoWriter.GetElementVariantType(MetadataType metadataType)
    at Unity.IL2CPP.Marshaling.MarshalInfoWriters.ComSafeArrayMarshalInfoWriter..ctor(ArrayType type)
    at Unity.IL2CPP.Marshaling.MarshalDataCollector.CreateMarshalInfoWriter(TypeReference type, MarshalType marshalType, MarshalInfo marshalInfo, Boolean useUnicodeCharSet, Boolean forByReferenceType, Boolean forFieldMarshaling, Boolean forReturnValue, Boolean forNativeToManagedWrapper, HashSet`1 typesForRecursiveFields)
    at Unity.IL2CPP.Marshaling.MarshalDataCollector.<>c__DisplayClass1_0.<CreateMarshalInfoWriter>b__1(FieldDefinition field)
    at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
    at Unity.IL2CPP.Marshaling.MarshalDataCollector.CreateMarshalInfoWriter(TypeReference type, MarshalType marshalType, MarshalInfo marshalInfo, Boolean useUnicodeCharSet, Boolean forByReferenceType, Boolean forFieldMarshaling, Boolean forReturnValue, Boolean forNativeToManagedWrapper, HashSet`1 typesForRecursiveFields)
    at Unity.IL2CPP.Marshaling.BodyWriters.InteropMarshaler.MarshalInfoWriterFor(MarshaledParameter parameter)
    at Unity.IL2CPP.Marshaling.BodyWriters.InteropMethodInfo..ctor(MethodReference interopMethod, MethodReference methodForParameterNames, InteropMarshaler marshaler)
    at Unity.IL2CPP.Marshaling.BodyWriters.ManagedToNative.PInvokeMethodBodyWriter..ctor(MethodReference interopMethod)
    at Unity.IL2CPP.MethodWriter.WriteMethodForDelegatePInvokeIfNeeded(IGeneratedMethodCodeWriter writer, MethodReference method, IInteropDataCollector interopDataCollector)
    at Unity.IL2CPP.SourceWriter.WriteMarshalingDefinitions(IGeneratedMethodCodeWriter writer, TypeReference type, IInteropDataCollector interopDataCollector)
    at Unity.IL2CPP.SourceWriter.<>c__DisplayClass7_0.<WriteMethodSourceFiles>b__0(IGeneratedMethodCodeWriter writer, TypeReference type)
    at 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, Action`2 writeEnd)
    at Unity.IL2CPP.SourceWriter.WriteEqualSizedChunks[T](NPath outputDir, IEnumerable`1 items, String fileName, Int64 chunkSize, Action`2 writeItemAction, SourceWritingContext sourceWritingContext, Action`2 writeEnd)
    at Unity.IL2CPP.SourceWriter.WriteMethodSourceFiles(NPath outputDirectory, SourceWritingContext sourceWritingContext, String fileName, IEnumerable`1 typeList, IMethodCollector methodCollector, Boolean writeMarshalingDefinitions)
    at Unity.IL2CPP.SourceWriter.Write(NPath outputDir, SourceWritingContext sourceWritingContext, AssemblyDefinition assemblyDefinition, IMethodCollector methodCollector)
    at Unity.IL2CPP.AssemblyConverter.Apply()
    at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies(IEnumerable`1 assemblyDirectories, IEnumerable`1 explicitAssemblies, NPath outputDir, NPath dataFolder, NPath symbolsFolder, NPath executableAssembiesFolder, NPath monoLibFolder, NPath monoEtcFolder, NPath[] searchDirectories, String entryAssemblyName, NPath[] extraTypesFiles)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.Program.Main(String[] args)

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

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,578
    The error message here is:

    IL2CPP error for method 'System.Void Unity.Notifications.Android.AndroidNotificationCenter::RegisterNotificationChannel(Unity.Notifications.Android.AndroidNotificationChannel)' in assembly 'D:\Projects\7_GameDistrict\Color Sort 3D\Temp\StagingArea\assets\bin\Data\Managed\Unity.Notifications.Android.dll'
    Additional information: SafeArray element type Int64 is not supported.

    I believe this was corrected, can you try the newest 2019.3 or 2019.4 version of Unity?
     
  6. Enotbeta

    Enotbeta

    Joined:
    Dec 21, 2019
    Posts:
    9
    Good afternoon, tell me what provokes this error when assembling a game for android.
    my settings:
     

    Attached Files:

  7. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,578
    There should be another error message after this one - can you provide it as well?
     
  8. bilalnadeem091

    bilalnadeem091

    Joined:
    Sep 26, 2019
    Posts:
    8
    hi i am building 32bit and 64bit build in unity using unity 2019.3 and ndk r19 which is supported by unity
    i have built many 32bit and 64bit builds with this set up but now i am building 64bit supported build this time now it display 3 errors

    Error1:
    Win32Exception: ApplicationName='C:\Program Files\Unity\Editor\Data\il2cpp/build/deploy/net471/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:\Client\StarApp\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\Client\StarApp\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/android-ndk-r19" --profiler-report --map-file-parser="C:/Program Files/Unity/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=D:/Client/StarApp/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=D:/Client/StarApp/Temp/StagingArea/Il2Cpp/il2cppOutput ', CurrentDirectory='D:\Client\StarApp\Temp\StagingArea\assets\bin\Data\Managed', Native error= The requested operation requires elevation.
    System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <ae22a4e8f83c41d69684ae7f557133d9>:0)
    System.Diagnostics.Process.Start () (at <ae22a4e8f83c41d69684ae7f557133d9>:0)
    (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    UnityEditor.Utils.Program.Start (System.EventHandler exitCallback) (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
    UnityEditor.Utils.Program.Start () (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <501fdf9059b849939e0297808b46ab08>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <501fdf9059b849939e0297808b46ab08>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <501fdf9059b849939e0297808b46ab08>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <501fdf9059b849939e0297808b46ab08>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)


    Error2:
    Build completed with a result of 'Failed'

    Error3:
    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00275] in <6f28216fea9f453abf2e05b770ed3ee4>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <6f28216fea9f453abf2e05b770ed3ee4>:0
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)



    I am using Google ads, firebase, facebook sdk in this project
    everything work fine for Mono build but failed to create il2cp build
    @JoshPeterson kindly help me please
     
    Last edited: Jul 6, 2020
  9. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,578
    There should be another error message in the editor log that indicates more specific details about the problem. If you can find it, please post it here, that will help us understand the cause of the problem in this case. Thanks!
     
  10. Enotbeta

    Enotbeta

    Joined:
    Dec 21, 2019
    Posts:
    9
    I’m not sure that I understood correctly what I need, so I throw off all the errors that appear
    P.s. I am not a native speaker, sorry for the errors and ambiguities in the text

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

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: C:\Unity\UnityLocal\GladiatorFightAndroid\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: C:\Unity\UnityLocal\GladiatorFightAndroid\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 185 of which compiled: 10
    Time Compile: 20012 milliseconds Assembly-CSharp.cpp
    Time Compile: 13317 milliseconds Il2CppMetadataUsage.c
    Time Compile: 7190 milliseconds Assembly-CSharp4.cpp
    Time Compile: 6933 milliseconds Assembly-CSharp5.cpp
    Time Compile: 6776 milliseconds Assembly-CSharp1.cpp
    Time Compile: 6646 milliseconds Assembly-CSharp2.cpp
    Time Compile: 6120 milliseconds Assembly-CSharp3.cpp
    Time Compile: 697 milliseconds Il2CppGenericMethodDefinitions.c
    Time Compile: 659 milliseconds Assembly-CSharp_CodeGen.c
    Time Compile: 415 milliseconds Il2CppMetadataRegistration.c
    Total compilation time: 36552 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\enot\AppData\Local\Temp\tmpF436.tmp" -o "C:\Unity\UnityLocal\GladiatorFightAndroid\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_141DF79B908394D3972B732CC9A36025\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe

    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C75A60A7E5E6F68F31FFB0A486AB63F2.o: section group 12 info 8428 out of range
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C75A60A7E5E6F68F31FFB0A486AB63F2.o: section group 77 info 8464 out of range
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C75A60A7E5E6F68F31FFB0A486AB63F2.o: section group 135 info 8410 out of range
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C75A60A7E5E6F68F31FFB0A486AB63F2.o: section group 140 info 8429 out of range
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/B2B9AEB2D67C4BD18279E5BADCBAD0C6.o: section name section has wrong type: 0
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/B2B9AEB2D67C4BD18279E5BADCBAD0C6.o: bad section name offset for section 1: 0
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/CA7CB0F53819EAA37C12B2E6A264BD7F.o: section name section has wrong type: 2621440
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: fatal error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/CA7CB0F53819EAA37C12B2E6A264BD7F.o: attempt to map 3851493376 bytes at offset 3851489280 exceeds size of file; the file may be corrupt
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


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

    ����ࠡ�⠭��� �᪫�祭��: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\enot\AppData\Local\Temp\tmpF436.tmp" -o "C:\Unity\UnityLocal\GladiatorFightAndroid\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_141DF79B908394D3972B732CC9A36025\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe

    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C75A60A7E5E6F68F31FFB0A486AB63F2.o: section group 12 info 8428 out of range
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C75A60A7E5E6F68F31FFB0A486AB63F2.o: section group 77 info 8464 out of range
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C75A60A7E5E6F68F31FFB0A486AB63F2.o: section group 135 info 8410 out of range
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C75A60A7E5E6F68F31FFB0A486AB63F2.o: section group 140 info 8429 out of range
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/B2B9AEB2D67C4BD18279E5BADCBAD0C6.o: section name section has wrong type: 0
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/B2B9AEB2D67C4BD18279E5BADCBAD0C6.o: bad section name offset for section 1: 0
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/CA7CB0F53819EAA37C12B2E6A264BD7F.o: section name section has wrong type: 2621440
    C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: fatal error: C:/Unity/UnityLocal/GladiatorFightAndroid/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/CA7CB0F53819EAA37C12B2E6A264BD7F.o: attempt to map 3851493376 bytes at offset 3851489280 exceeds size of file; the file may be corrupt
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    � Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    � Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    � il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    � il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    � il2cpp.Program.Main(String[] args)

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(Il2CppBuildPipelineData, String, String, Boolean)
    UnityEditorInternal.IL2CPPBuilder:Run()
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Error#2:
    Exception: C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\il2cpp/build/deploy/net471/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 <9ba1187881a84a08b5f9c4cb333d7a6a>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <9ba1187881a84a08b5f9c4cb333d7a6a>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <9ba1187881a84a08b5f9c4cb333d7a6a>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <9ba1187881a84a08b5f9c4cb333d7a6a>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <9ba1187881a84a08b5f9c4cb333d7a6a>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <9ba1187881a84a08b5f9c4cb333d7a6a>:0)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <501fdf9059b849939e0297808b46ab08>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <501fdf9059b849939e0297808b46ab08>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <501fdf9059b849939e0297808b46ab08>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <501fdf9059b849939e0297808b46ab08>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <9ba1187881a84a08b5f9c4cb333d7a6a>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

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

    Error#4:
    UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00275] in <9ba1187881a84a08b5f9c4cb333d7a6a>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <9ba1187881a84a08b5f9c4cb333d7a6a>:0
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  11. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,578
    Thanks, Error #1 here seems to have the details I'm looking for. I'm unsure about what might cause this error though. Is this a project that you can share with us via a bug report? If so, we'd like to investigate it. You can find details about how to submit a bug report here: https://unity3d.com/unity/qa/bug-reporting
     
  12. Enotbeta

    Enotbeta

    Joined:
    Dec 21, 2019
    Posts:
    9
    Perhaps the information will be useful to someone, updates from version 2019.3.2F1 to 2019.3.15F1, though the first time (immediately after downloading) failed, there was an import error, restarting the computer fixed this problem.
     
  13. unity_GameSideStudio

    unity_GameSideStudio

    Joined:
    Apr 30, 2020
    Posts:
    2
    Hello @JoshPeterson i have this error can you help me

    Unity Version: 2019.4.3f1
    NDK download automatic with unity hub

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

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: C:\Users\Ann\Desktop\������\Go maze\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: C:\Users\Ann\Desktop\������\Go maze\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 117 of which compiled: 0
    Total compilation time: 53 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2019.4.3f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\Ann\AppData\Local\Temp\tmpDF3F.tmp" -o "C:\Users\Ann\Desktop\������\Go maze\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_54BCB4291C95EBCC8F3079AD839AAB58\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe

    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/5DB5DBD987DFACF69132DDF1A364A7A7.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/A3B9D3F37FAA3F6E3B8CF2715A0E0BCB.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/AB903E2B540947C080008D77576E5861.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/AE0D1C7ED4467C4E6CEE93BDD8528296.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FA2ED34A877D7EAE1966CA92889A7EC0.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/B6E0711740281F3BAD4ED780422CD3DB.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/EF2047C8F67ED59D930D74390DA09696.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/7DF83F6CE026B6AB89C730ECFF1FB3EE.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/EB495FB44D7AD0B8AFDC368180EC72F2.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/25B16C45227BDA58C585F6BAF0B560D6.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FD48076229E94DC6AF269A0D430E8E90.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/0E3E2C43CFEE8505D294A071F6AB3816.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/4AC3805F275E4FF935CFAD32348D76BC.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/4F1589113C27387D335E9A33BF5A7BB8.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/7964D8333B85FF6A406DA42ABDDC5C50.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/70078A796700E398578EB942CDE6A861.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/9196549D5A164699E5B30C931528BA82.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/B16269661C10ECFAC1DD1A705E7F91AC.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/A0E4329E1E2BA9FA2C098C0E17F2AD39.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/652D72DCDEDFC25BC2CF5E188B5CD775.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/8E6AF6C52112E5E9A07C7BFAB387D7CF.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/4C8809146EB4FD899DA1BF4FAD1DB3D7.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/EF0B8C0598E69109782A463FAF5E2BF8.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/BF6BDE5BCD4F0405D2B991824B8DC88E.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C95165214C420FF9C79ADC018200B11B.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/DAC5BAB44A301CB9CBA56F83338DE03E.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/29266E6A934077A93DAD0D386A7BA540.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/365B116DD9725AEC5341E07A6E877E3E.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/3B656088A90BC6C39D9901AA7E94CC84.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/57BAA1A74E10570BE615F4F23E3D5AC0.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/CCCFE5AC1C900F8921F87C155151B48E.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/2C5B98F88910AE284E6F8F98F040BE44.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/83B9324519D3A77AEF5F5A1D66C8EFDE.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/AA3161C7FC5E85E7C522AF285C94DE89.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/83DC99C373DC2C9BB21C63C802D0AFEF.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/90CD25D6036517D4006A545CFD23A98F.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C5162AEF0D636886EF367499B9ED7679.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/47F06B81DFE5157EC91EC088760006C5.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/4568AC24FCAA1D05C59D8D9A17E8A46F.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C7FFBCE0F759BE0ACDFCCF43FBEBD3AC.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/87CAAF2E91A3E022751DF5F56B4310CC.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/5E5527D0EDA01A009C5359825D5AD5CE.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/AF4BB749E40493E3D59D41ADC2414A53.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/27416A82D6AAE8E6629D13FBC080A57F.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/0DA243887DB72995437F8A20474CB7E2.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/0B59175CDE352621472C191E5B663E4F.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/B4BA0640708A13EE34BED55D8A0E5B52.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C46392A9672C64C94FFA29A7B2D4AF37.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/0BD11D635818B594C5968BE3484BE821.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/32E48816E98F98AABA432C6F8CAAA102.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FC0938BAA07DD10D8E134F2FAD0D80A9.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/AA7CBAD110641A73344880A43807547C.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/4B27C4EC6AA3F4EEAB3A457B6ED37D61.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/6E9C2FF500A5580E48B653E7116EC7DB.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/B0AA322D41F295B322A5C5B32EB0D499.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/ADAD57F95D33ECBB1485D421FB8C90B8.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/9A585FDD4AD8B0CCE670092C64DA1CC5.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/0B589618388228DBC1B645BCEFDBEDF5.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/132CFE986CE22DDC297C80C006550F52.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/9ADA15BEA82BBA783BE6C606C8D90CDC.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/0DF74F57ABE7859FF4542F0BF5F8D93D.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/226A5C332349A146AECD52B68C04F5D8.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/B0457C8DBC2821FB9F759E8F2B063CAB.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/DFC747A0C6383D7AB8DAFF381C20CB7E.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/E9A7B1B0B7D0684E5F1240B0F2507608.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/3CECDD7C6559ACA426EA3F45DAF33DC7.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/9B45EB23914ABC5DC071AEE930000473.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/442310AE081FC03089491C2DC6D76D87.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/E086BCEB339E45E54E2289ABFD8967E2.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/3799227DD18438BACCC0A09CF622E392.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/DE2C377DD333B46317B54553D9F37D0D.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/C77186CB863A290487AE3F3EE1BE5E06.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/1D4F17DBF1D45575B8DF5E5DCE1879DA.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/781EAF78EEDC195D952A7442528582D7.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/CF165E226748F891D6055B0106367C15.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/37899FA85BFBD56D719BCBE4B49F5EE2.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/D8AD9EE12153D8193BA8B770D14982B0.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/8078435A17BC42368E44144D4D9A8169.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/AD10CC2C6BEBE6C4E610D75C71301C75.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/9058D2A790EF250B8B22D971FAACBD40.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/360BF908F3E1F0FFC0D84B82A7E577AA.o'
    clang++.exe: error: no such file or directory: 'C:/Users/Ann/Desktop/??????/Go maze/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C46F8101ABE2F425ADE900D2D8<message truncated>

    2Error

    Exception: C:\Program Files\Unity\Hub\Editor\2019.4.3f1\Editor\Data\il2cpp/build/deploy/net471/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 <bccb16a88ec4456dbf07978c418f407b>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <bccb16a88ec4456dbf07978c418f407b>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <bccb16a88ec4456dbf07978c418f407b>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <bccb16a88ec4456dbf07978c418f407b>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <bccb16a88ec4456dbf07978c418f407b>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <bccb16a88ec4456dbf07978c418f407b>:0)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d7067458867d436a825598eb5e44cdf0>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d7067458867d436a825598eb5e44cdf0>: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 <d7067458867d436a825598eb5e44cdf0>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <d7067458867d436a825598eb5e44cdf0>: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 <bccb16a88ec4456dbf07978c418f407b>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    3Error
    Build completed with a result of 'Failed' in 26 seconds (26349 ms)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    4Errors
    UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <bccb16a88ec4456dbf07978c418f407b>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <bccb16a88ec4456dbf07978c418f407b>:0
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  14. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,518
    Your project path conains non ascii symbols, please move your project to path which contains only Ascii symbols

    C:/Users/Ann/Desktop/??????/Go maze
     
  15. tunerozkan

    tunerozkan

    Joined:
    Jun 14, 2018
    Posts:
    10
    so how do i change the project path
     
  16. simpleonegame

    simpleonegame

    Joined:
    Dec 17, 2019
    Posts:
    13
    Please help, there is not much answer to this issue "il2cpp did not run properly"
    Whenever I try building for android this is what showing. I'm very new to Unity, any help would be greatly appreciated.

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

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: C:\Work\GameDev\Slow Mo Hero\Time Master\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 224 of which compiled: 0
    Total compilation time: 1267 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2019.3.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\apurb\AppData\Local\Temp\tmp5A0F.tmp" -o "C:\Work\GameDev\Slow Mo Hero\Time Master\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_5618BF69E66A68B7EB33AE2F73D56763\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe

    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:426: error: undefined reference to 'init'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:454: error: undefined reference to 'logout'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:454: error: undefined reference to 'logout'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:464: error: undefined reference to 'activateApp'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:464: error: undefined reference to 'activateApp'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:488: error: undefined reference to 'logPurchase'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:518: error: undefined reference to 'ui'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:540: error: undefined reference to 'initScreenPosition'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:540: error: undefined reference to 'initScreenPosition'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


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

    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2019.3.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\apurb\AppData\Local\Temp\tmp5A0F.tmp" -o "C:\Work\GameDev\Slow Mo Hero\Time Master\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_5618BF69E66A68B7EB33AE2F73D56763\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe

    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:426: error: undefined reference to 'init'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:454: error: undefined reference to 'logout'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:454: error: undefined reference to 'logout'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:464: error: undefined reference to 'activateApp'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:464: error: undefined reference to 'activateApp'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:488: error: undefined reference to 'logPurchase'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:518: error: undefined reference to 'ui'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:540: error: undefined reference to 'initScreenPosition'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:540: error: undefined reference to 'initScreenPosition'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(Il2CppBuildPipelineData, String, String, Boolean)
    UnityEditorInternal.IL2CPPBuilder:Run()
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  17. simpleonegame

    simpleonegame

    Joined:
    Dec 17, 2019
    Posts:
    13
    Im' seeing this error and I have no clue what it means. very new to unity. Can anyone please help me

    This is the error i'm getting while building for android


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

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: C:\Work\GameDev\Slow Mo Hero\Time Master\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 224 of which compiled: 0
    Total compilation time: 1267 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2019.3.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\apurb\AppData\Local\Temp\tmp5A0F.tmp" -o "C:\Work\GameDev\Slow Mo Hero\Time Master\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_5618BF69E66A68B7EB33AE2F73D56763\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe

    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:426: error: undefined reference to 'init'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:454: error: undefined reference to 'logout'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:454: error: undefined reference to 'logout'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:464: error: undefined reference to 'activateApp'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:464: error: undefined reference to 'activateApp'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:488: error: undefined reference to 'logPurchase'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:518: error: undefined reference to 'ui'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:540: error: undefined reference to 'initScreenPosition'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:540: error: undefined reference to 'initScreenPosition'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


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

    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2019.3.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\apurb\AppData\Local\Temp\tmp5A0F.tmp" -o "C:\Work\GameDev\Slow Mo Hero\Time Master\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_5618BF69E66A68B7EB33AE2F73D56763\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe

    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:426: error: undefined reference to 'init'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:454: error: undefined reference to 'logout'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:454: error: undefined reference to 'logout'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:464: error: undefined reference to 'activateApp'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:464: error: undefined reference to 'activateApp'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:488: error: undefined reference to 'logPurchase'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:518: error: undefined reference to 'ui'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:540: error: undefined reference to 'initScreenPosition'
    C:\Work\GameDev\Slow Mo Hero\Time Master\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.Canvas.cpp:540: error: undefined reference to 'initScreenPosition'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(Il2CppBuildPipelineData, String, String, Boolean)
    UnityEditorInternal.IL2CPPBuilder:Run()
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  18. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,518
    Copy paste your project to a new location, for ex., C:\MyProjects\GoMaze
     
  19. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,518
    Look at the function names after 'error: undefined reference to ', those are not implemented on Android, thus il2cpp complains about them. Either implement them or don't call them, by wrapping code

    `
    #if !UNITY_ANDROID
    ...
    #endif
    `
     
  20. simpleonegame

    simpleonegame

    Joined:
    Dec 17, 2019
    Posts:
    13
    Thank you Tomas for your help!

    Everything was working fine until I've integrated Facebook SDK. Is it caused by Facebook? Do I have to change NDK, I'm saying this because when I googled this error most of the cases people are talking about changing NDK to some other version, some says r16, some recommends r19 c, some people suggested to delete letter "c" in r19 c.

    It may sound stupid but I have to ask this since i'm new to Unity & coding, if I stop calling those functions, are they going to impact on my Facebook integration? In fact I'm not too sure how are those unimplemented functions are being called. Is Facebook calling those functions. Please help me with this.
     
  21. simpleonegame

    simpleonegame

    Joined:
    Dec 17, 2019
    Posts:
    13
    Issue is fixed by re-importing Facebook SDK. But I'm seeing new errors now. Please help me-



    CommandInvokationFailure: Gradle build failed.

    C:/Program Files/Unity/Hub/Editor/2019.3.6f1/Editor/Data/PlaybackEngines/AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2019.3.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"


    stderr[


    FAILURE: Build failed with an exception.


    * What went wrong:

    Execution failed for task ':launcher:checkReleaseDuplicateClasses'.

    > 1 exception was raised by workers:

    java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class android.support.customtabs.ICustomTabsCallback found in modules classes.jar :)androidx.browser.browser-1.3.0-alpha04:) and classes.jar :)com.android.support.customtabs-25.3.1:)

    Duplicate class android.support.customtabs.ICustomTabsCallback$Stub found in modules classes.jar :)androidx.browser.browser-1.3.0-alpha04:) and classes.jar :)com.android.support.customtabs-25.3.1:)

    Duplicate class android.support.customtabs.ICustomTabsCallback$Stub$Proxy found in modules classes.jar :)androidx.browser.browser-1.3.0-alpha04:) and classes.jar :)com.android.support.customtabs-25.3.1:)

    Duplicate class android.support.customtabs.ICustomTabsService found in modules classes.jar :)androidx.browser.browser-1.3.0-alpha04:) and classes.jar :)com.android.support.customtabs-25.3.1:)

    Duplicate class android.support.customtabs.ICustomTabsService$Stub found in modules classes.jar :)androidx.browser.browser-1.3.0-alpha04:) and classes.jar :)com.android.support.customtabs-25.3.1:)

    Duplicate class android.support.customtabs.ICustomTabsService$Stub$Proxy found in modules classes.jar :)androidx.browser.browser-1.3.0-alpha04:) and classes.jar :)com.android.support.customtabs-25.3.1:)

    Duplicate class android.support.customtabs.IPostMessageService found in modules classes.jar :)androidx.browser.browser-1.3.0-alpha04:) and classes.jar :)com.android.support.customtabs-25.3.1:)

    Duplicate class android.support.customtabs.IPostMessageService$Stub found in modules classes.jar :)androidx.browser.browser-1.3.0-alpha04:) and classes.jar :)com.android.support.customtabs-25.3.1:)

    Duplicate class android.support.customtabs.IPostMessageService$Stub$Proxy found in modules classes.jar :)androidx.browser.browser-1.3.0-alpha04:) and classes.jar :)com.android.support.customtabs-25.3.1:)

    Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes.jar :)androidx.core.core-1.5.0-alpha01:) and classes.jar :)com.android.support.support-compat-25.3.1:)

    Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules classes.jar :)androidx.core.core-1.5.0-alpha01:) and classes.jar :)com.android.support.support-compat-25.3.1:)

    Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules classes.jar :)androidx.core.core-1.5.0-alpha01:) and classes.jar :)com.android.support.support-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$CallbackHandler found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$ConnectionCallback found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$ConnectionCallback$ConnectionCallbackInternal found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$ItemCallback found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$ItemReceiver found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImpl found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$1 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$2 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$3 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$4 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$5 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$6 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi23 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$1 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$2 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$3 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$4 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$5 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$MediaServiceConnection found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$MediaServiceConnection$1 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$MediaServiceConnection$2 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserServiceCallbackImpl found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaItem found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$MediaItem$1 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$SearchCallback found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$SearchResultReceiver found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$ServiceBinderWrapper found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$Subscription found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaBrowserCompat$SubscriptionCallback found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaDescriptionCompat found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaDescriptionCompat$1 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaDescriptionCompat$Builder found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaMetadataCompat found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaMetadataCompat$1 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.MediaMetadataCompat$Builder found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.RatingCompat found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.RatingCompat$1 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.RatingCompat$StarStyle found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.RatingCompat$Style found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.IMediaControllerCallback found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.IMediaControllerCallback$Stub found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.IMediaControllerCallback$Stub$Proxy found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.IMediaSession found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.IMediaSession$Stub found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.IMediaSession$Stub$Proxy found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat$Callback found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat$Callback$MessageHandler found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat$Callback$StubCompat found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat$MediaControllerImpl found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat$MediaControllerImplApi21 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat$MediaControllerImplApi21$ExtraBinderRequestResultReceiver found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat$MediaControllerImplApi21$ExtraCallback found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat$MediaControllerImplBase found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat$PlaybackInfo found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat$TransportControls found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat$TransportControlsApi21 found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) and classes.jar :)com.android.support.support-media-compat-25.3.1:)

    Duplicate class android.support.v4.media.session.MediaControllerCompat$TransportControlsBase found in modules classes.jar :)androidx.media.media-1.2.0-alpha04:) <message truncated>
     
  22. baize97

    baize97

    Joined:
    Jun 23, 2020
    Posts:
    25
    @JoshPeterson please help me

    --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WindowsDesktop" --architecture="x64" --configuration="Release" --outputpath="D:\1Work\QMgitt\QmanDreamer\Temp/StagingArea/Data\Native\GameAssembly.dll" --cachedirectory="D:\1Work\QMgitt\QmanDreamer\Assets\..\Library/il2cpp_cache" --profiler-report --map-file-parser="D:/Work Ware/Unity/2019.4.5f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=D:/1Work/QMgitt/QmanDreamer/Temp/StagingArea/Data/Managed --generatedcppdir=D:/1Work/QMgitt/QmanDreamer/Temp/StagingArea/Data/il2cppOutput
    stdout:
    Building GameAssembly.dll with MsvcDesktopToolChain
    Msvc Install Version: 15.0
    Msvc Install SDK Directory: C:\Program Files (x86)\Windows Kits\10
    Msvc Linker Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\link.exe
    Msvc Compiler Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\cl.exe
    Output directory: D:\1Work\QMgitt\QmanDreamer\Temp\StagingArea\Data\Native
    Cache directory: D:\1Work\QMgitt\QmanDreamer\Library\il2cpp_cache
    ObjectFiles: 429 of which compiled: 429
    Time Compile: 57855 milliseconds GenericMethods25.cpp
    Time Compile: 19670 milliseconds mscorlib11.cpp
    Time Compile: 16163 milliseconds Unity.TextMeshPro2.cpp
    Time Compile: 16141 milliseconds Unity.TextMeshPro3.cpp
    Time Compile: 15427 milliseconds System.Windows.Forms8.cpp
    Time Compile: 12854 milliseconds System7.cpp
    Time Compile: 9087 milliseconds Unity.TextMeshPro1.cpp
    Time Compile: 9076 milliseconds Il2CppInvokerTable.cpp
    Time Compile: 8771 milliseconds Lump_libil2cpp_vm.cpp
    Time Compile: 8431 milliseconds Il2CppAttributes.cpp
    Total compilation time: 172726 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\link.exe /out:"D:\1Work\QMgitt\QmanDreamer\Library\il2cpp_cache\linkresult_3B88F5E654721A5B86F1A9627D7A3235\GameAssembly.dll" /DEBUG /INCREMENTAL:NO /LARGEADDRESSAWARE /NXCOMPAT /DYNAMICBASE /NOLOGO /TLBID:1 /OPT:REF /OPT:ICF /HIGHENTROPYVA /DLL /IGNORE:4104 /NODEFAULTLIB:uuid.lib "kernel32.lib" "user32.lib" "advapi32.lib" "ole32.lib" "oleaut32.lib" "Shell32.lib" "Crypt32.lib" "psapi.lib" "version.lib" "MsWSock.lib" "ws2_32.lib" "Iphlpapi.lib" "Dbghelp.lib" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um\x64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\ucrt\x64" /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\lib\x64" /SUBSYSTEM:WINDOWS @"C:\Users\suxing\AppData\Local\Temp\tmpC300.tmp"
    ????????? D:\1Work\QMgitt\QmanDreamer\Library\il2cpp_cache\linkresult_3B88F5E654721A5B86F1A9627D7A3235\GameAssembly.lib ????? D:\1Work\QMgitt\QmanDreamer\Library\il2cpp_cache\linkresult_3B88F5E654721A5B86F1A9627D7A3235\GameAssembly.exp
    7100055A946E1F87F26CBC8F5AF0DBCE.obj : error LNK2019: ??????????????? Stop?????? VoiceProviderIOS_Silence_m14121F6888052D9E6C08852381483C52C2427A49 ????????��???
    ???????????????????????:
    "public: static void __cdecl il2cpp::vm::Thread::Stop(struct Il2CppInternalThread *)" (?Stop@Thread@vm@il2cpp@@SAXPEAUIl2CppInternalThread@@@Z)
    7100055A946E1F87F26CBC8F5AF0DBCE.obj : error LNK2019: ??????????????? GetVoices?????? VoiceProviderIOS_GetVoices_mE4F43FF9DDF147160C93C0489E01B41C1A84F9CE ????????��???
    7100055A946E1F87F26CBC8F5AF0DBCE.obj : error LNK2019: ??????????????? Speak?????? U3CspeakU3Ed__22_MoveNext_m3C8DBA15719386A1B10B33536006F75F18D739EB ????????��???
    D:\1Work\QMgitt\QmanDreamer\Library\il2cpp_cache\linkresult_3B88F5E654721A5B86F1A9627D7A3235\GameAssembly.dll : fatal error LNK1120: 3 ?????????????????
    �� Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    �� Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    �� il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    �� il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    �� il2cpp.Program.Main(String[] args)
    stderr:
    δ��������쳣: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\link.exe /out:"D:\1Work\QMgitt\QmanDreamer\Library\il2cpp_cache\linkresult_3B88F5E654721A5B86F1A9627D7A3235\GameAssembly.dll" /DEBUG /INCREMENTAL:NO /LARGEADDRESSAWARE /NXCOMPAT /DYNAMICBASE /NOLOGO /TLBID:1 /OPT:REF /OPT:ICF /HIGHENTROPYVA /DLL /IGNORE:4104 /NODEFAULTLIB:uuid.lib "kernel32.lib" "user32.lib" "advapi32.lib" "ole32.lib" "oleaut32.lib" "Shell32.lib" "Crypt32.lib" "psapi.lib" "version.lib" "MsWSock.lib" "ws2_32.lib" "Iphlpapi.lib" "Dbghelp.lib" /LIBPATH:"C:\Program Fi
     
  23. baize97

    baize97

    Joined:
    Jun 23, 2020
    Posts:
    25
    @Tomas1856
     
  24. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,578
    It looks like there might be a managed method named VoiceProviderIOS.Silence being compiled. Is this method for iOS only? I suspect that is it trying to access a native library for iOS, which is not present for Android. That might explain this error.
     
  25. baize97

    baize97

    Joined:
    Jun 23, 2020
    Posts:
    25
    deleted the related code, the problem is solved, thank you very much
     
  26. tarikcosovicc

    tarikcosovicc

    Joined:
    Mar 6, 2015
    Posts:
    4
    @JoshPeterson Hello I have encountered the same problem while trying to build for android. However when I tried to manually setup android-ndk-r16b to try and build the app Unity detected it as an older version and requires a higher version of the ndk. It does not let me set the r16b as my ndk, up until this point I have followed every instruction and solution on the forums, what should I do to fix this? I am using Unity 2019.3.11, tried switching versions however it did not help!

    Thank you for your assistance!
     
  27. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,578
    I don't believe you can use the r16b NDL with Unity 2019.3 and later. According to this page: https://docs.unity3d.com/Manual/android-sdksetup.html you will need to use NDK r19.

    Have you manually tried to use NDK r19? You should also be able to install it via the hub.
     
  28. tarikcosovicc

    tarikcosovicc

    Joined:
    Mar 6, 2015
    Posts:
    4
    @JoshPeterson I was already using the ndk-r19 installed trough the Unity hub while I was encountering the issue, I just tried to install android-ndk-r19c manually, but when I set it Unity popped the same error message saying it requires a higher version.
     

    Attached Files:

  29. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,578
    It looks like you installed r19c, which is actually newer than what Unity needs, which is r19 (without the c). Can you try r19?
     
  30. tarikcosovicc

    tarikcosovicc

    Joined:
    Mar 6, 2015
    Posts:
    4
    @JoshPeterson It was already using the r19 installed trough the hub, anyway I just installed it manually too and it repeats the error: il2cpp.exe did not run properly! Thank you for your fast replies Josh!
     
  31. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,578
    Can you provide details about the error you see? Sorry if you have already put it in this thread, I'm unable to track it down now.
     
  32. tarikcosovicc

    tarikcosovicc

    Joined:
    Mar 6, 2015
    Posts:
    4
    @JoshPeterson There were some conflicting dll files after all I managed to fix it, thank you for your support Josh, xo.
     
    JoshPeterson likes this.
  33. Deleted User

    Deleted User

    Guest

    If you still have this issue just go to Package Manager and update all the "In Project" packages until it shows "verified" next to it, the issue will be then fixed.
     
  34. jean21101999

    jean21101999

    Joined:
    Mar 2, 2020
    Posts:
    21
    I have this error. NDK Location well setted.

    Exception: C:\Program Files\Unity\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <887a438259064e89922419bc7b8810ab>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <887a438259064e89922419bc7b8810ab>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at <887a438259064e89922419bc7b8810ab>:0)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String& output, System.String& error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <887a438259064e89922419bc7b8810ab>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <887a438259064e89922419bc7b8810ab>:0)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at <887a438259064e89922419bc7b8810ab>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <887a438259064e89922419bc7b8810ab>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <887a438259064e89922419bc7b8810ab>:0)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8656af08553f4582a8969c722a26e39b>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8656af08553f4582a8969c722a26e39b>: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 <8656af08553f4582a8969c722a26e39b>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <8656af08553f4582a8969c722a26e39b>: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 <887a438259064e89922419bc7b8810ab>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  35. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,518
    This is only a stacktrace, there should be an actual error somewhere.
     
  36. Lee-1227

    Lee-1227

    Joined:
    Mar 10, 2020
    Posts:
    2
    Hello @JoshPeterson I have this error when build android apk (IL2CPP) , can you help me

    UnityVersion: 2019.4.2f1
    Android JDK/NDK/Gradle are all use recommended option

    Code (CSharp):
    1.  
    2. Failed running D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="E:\Workspace\JimuUnity\JimuGo-Unity\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="E:\Workspace\JimuUnity\JimuGo-Unity\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="D:/Program Files/Unity/Hub/Editor/2019.4.2f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="D:/Program Files/Unity/Hub/Editor/2019.4.2f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="D:/Program Files/Unity/Hub/Editor/2019.4.2f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="D:/Program Files/Unity/Hub/Editor/2019.4.2f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=E:/Workspace/JimuUnity/JimuGo-Unity/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=E:/Workspace/JimuUnity/JimuGo-Unity/Temp/StagingArea/Il2Cpp/il2cppOutput
    3.  
    4. stdout:
    5. Building libil2cpp.so with AndroidToolChain
    6.     Output directory: E:\Workspace\JimuUnity\JimuGo-Unity\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    7.     Cache directory: E:\Workspace\JimuUnity\JimuGo-Unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    8. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: E:\Workspace\JimuUnity\JimuGo-Unity\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp6.cpp:44714:30: error: use of undeclared identifier 'L_0'
    9.                __this->set_m_Elasticity_8(L_0);
    10.                                           ^
    11. 1 error generated.
    12.  
    13.  
    14. Invocation was: Executable: "D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"
    15. Arguments: -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"D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\il2cpp\libil2cpp" -I"D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\il2cpp\libil2cpp" -I"D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\il2cpp\external\bdwgc\include" -I"D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\il2cpp\external\xxHash" -I"E:\Workspace\JimuUnity\JimuGo-Unity\Temp\StagingArea\Il2Cpp\il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -stdlib=libc++ -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "E:\Workspace\JimuUnity\JimuGo-Unity\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp6.cpp" -o "E:/Workspace/JimuUnity/JimuGo-Unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/121F9B098CCB36B445C1BC4A71B52D5B.o"
    16.  
    17.   �� Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    18.   �� Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    19.   �� il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    20.   �� il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    21.   �� il2cpp.Program.Main(String[] args)
    22. stderr:
    23.  
    24. δ��������쳣:  Unity.IL2CPP.Building.BuilderFailedException: E:\Workspace\JimuUnity\JimuGo-Unity\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp6.cpp:44714:30: error: use of undeclared identifier 'L_0'
    25.                __this->set_m_Elasticity_8(L_0);
    26.                                           ^
    27. 1 error generated.
    28.  
    29.  
    30. Invocation was: Executable: "D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"
    31. Arguments: -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"D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\il2cpp\libil2cpp" -I"D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\il2cpp\libil2cpp" -I"D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\il2cpp\external\bdwgc\include" -I"D:\Program Files\Unity\Hub\Editor\2019.4.2f1\Editor\Data\il2cpp\external\xxHash" -I"E:\Workspace\JimuUnity\JimuGo-Unity\Temp\StagingArea\Il2Cpp\il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -stdlib=libc++ -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "E:\Workspace\JimuUnity\JimuGo-Unity\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp6.cpp" -o "E:/Workspace/JimuUnity/JimuGo-Unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/121F9B098CCB36B445C1BC4A71B52D5B.o"
    32.  
    33.   �� Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    34.   �� Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    35.   �� il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    36.   �� il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    37.   �� il2cpp.Program.Main(String[] args)
    38.  
    39. UnityEngine.Debug:LogError(Object)
    40. UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
    41. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
    42. UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String)
    43. UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(Il2CppBuildPipelineData, String, String, Boolean)
    44. UnityEditorInternal.IL2CPPBuilder:Run()
    45. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
    46. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    47.  
     
  37. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,578
    This looks like a bug in the IL2CPP code. I'm not familiar with this issue, so can you submit a bug report about it? You can find details about how to submit a bug report here: https://unity3d.com/unity/qa/bug-reporting
     
  38. Lee-1227

    Lee-1227

    Joined:
    Mar 10, 2020
    Posts:
    2
    Thank you ! :)
     
  39. Relec

    Relec

    Joined:
    May 16, 2016
    Posts:
    6
    Hi does anyone have any tips on my error below? Thank you.

    Code (CSharp):
    1. Exception: D:\2020.1.14f1\Editor\Data\il2cpp/build/deploy/netcoreapp3.0/il2cpp.exe did not run properly!
    2.  
    3. Failed running "D:\2020.1.14f1\Editor\Data\il2cpp/build/deploy/netcoreapp3.0/il2cpp.exe" --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="D:\Movie Getter\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\Movie Getter\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="D:/2020.1.14f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="D:/2020.1.14f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --baselib-directory="D:/2020.1.14f1/Editor/Data/PlaybackEngines/AndroidPlayer\Variations\il2cpp\Development\StaticLibs\armeabi-v7a" --avoid-dynamic-library-copy --tool-chain-path="D:/android-ndk-r19" --incremental-g-c-time-slice=3 --profiler-report --map-file-parser=D:/2020.1.14f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe --directory="D:/Movie Getter/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="D:/Movie Getter/Temp/StagingArea/Il2Cpp/il2cppOutput"
    4.  
    5. stdout:
    6. Running il2cpp.exe in server GC mode.
    7. Building libil2cpp.so with AndroidToolChain
    8.     Output directory: D:\Movie Getter\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    9.     Cache directory: D:\Movie Getter\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    10. ObjectFiles: 345 of which compiled: 345
    11.     Time Compile: 63234 milliseconds Il2CppAttributes.cpp
    12.     Time Compile: 62550 milliseconds Il2CppInvokerTable.cpp
    13.     Time Compile: 34273 milliseconds Generics20.cpp
    14.     Time Compile: 30743 milliseconds Il2CppCompilerCalculateTypeValues4.cpp
    15.     Time Compile: 30737 milliseconds Il2CppGenericMethodPointerTable.cpp
    16.     Time Compile: 20021 milliseconds Il2CppMetadataUsage.c
    17.     Time Compile: 19940 milliseconds Il2CppTypeDefinitions.c
    18.     Time Compile: 19936 milliseconds Il2CppGenericMethodTable.c
    19.     Time Compile: 19935 milliseconds Il2CppGenericMethodDefinitions.c
    20.     Time Compile: 17123 milliseconds Assembly-CSharp3.cpp
    21. Total compilation time: 314978 milliseconds.
    22. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: D:\android-ndk-r19\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\19167\AppData\Local\Temp\tmp8722.tmp" -o "D:\Movie Getter\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_B26A9123F00C729018667EC2E5869638\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction "D:\2020.1.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Development\StaticLibs\armeabi-v7a\baselib.a" -llog -rdynamic -fuse-ld=gold.exe
    23.  
    24. D:\android-ndk-r19\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Movie Getter/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/11C9D550A663F0A8E052D847076ED507.o: multiple definition of 'JNI_OnLoad'
    25. D:\android-ndk-r19\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: D:/Movie Getter/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/821B0988E82A02D16AF01D650FE72E7B.o: previous definition here
    26. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    27.  
    28.  
    29.   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    30.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    31.   at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions)
    32.   at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions)
    33.   at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    34.   at il2cpp.Program.Main(String[] args)
    35. stderr:
    36. Unhandled exception. Unity.IL2CPP.Building.BuilderFailedException: D:\android-ndk-r19\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\19167\AppData\Local\Temp\tmp8722.tmp" -o "D:\Movie Getter\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_B26A9123F00C729018667EC2E5869638\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction "D:\2020.1.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Development\StaticLibs\armeabi-v7a\baselib.a" -llog -rdynamic -fuse-ld=gold.exe
    37.  
    38. D:\android-ndk-r19\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Movie Getter/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/11C9D550A663F0A8E052D847076ED507.o: multiple definition of 'JNI_OnLoad'
    39. D:\android-ndk-r19\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: D:/Movie Getter/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/821B0988E82A02D16AF01D650FE72E7B.o: previous definition here
    40. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    41.  
    42.  
    43.   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    44.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    45.   at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions)
    46.   at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions)
    47.   at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    48.   at il2cpp.Program.Main(String[] args)
    49.  
    50. UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <bd45cfd5e8c2437da9b5cc29b19f336f>:0)
    51. UnityEditorInternal.Runner.RunNetCoreProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <bd45cfd5e8c2437da9b5cc29b19f336f>:0)
    52. UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <bd45cfd5e8c2437da9b5cc29b19f336f>:0)
    53. UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <bd45cfd5e8c2437da9b5cc29b19f336f>:0)
    54. UnityEditorInternal.IL2CPPBuilder.Run () (at <bd45cfd5e8c2437da9b5cc29b19f336f>:0)
    55. UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <bd45cfd5e8c2437da9b5cc29b19f336f>:0)
    56. UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3746c56c485a40cda2a56050de658f5e>:0)
    57. UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3746c56c485a40cda2a56050de658f5e>:0)
    58. 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 <3746c56c485a40cda2a56050de658f5e>:0)
    59. UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <3746c56c485a40cda2a56050de658f5e>:0)
    60. 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 <bd45cfd5e8c2437da9b5cc29b19f336f>:0)
    61. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
    62.  
     
  40. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,578
    The relevant error message is:

    multiple definition of 'JNI_OnLoad'

    Do you have any native code in this project which defines that method?
     
  41. Relec

    Relec

    Joined:
    May 16, 2016
    Posts:
    6
    Thanks, yes I have added a native plugin recently from another dev. That must be it.
     
  42. upendraakki329

    upendraakki329

    Joined:
    Sep 21, 2020
    Posts:
    6
    please help i am getting this error now in unity 2020.2.0f1

    ERROR:



    Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\android-ndk-r19-windows-x86_64\android-ndk-r19\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\GNANI UPPI\AppData\Local\Temp\tmp5F7D.tmp" -o "C:\Users\GNANI UPPI\Desktop\CC4\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_E9ED9DA5593501D330A1C08D36C0AEFD\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target aarch64-linux-android21 -Wl,--wrap,sigaction "C:\Users\GNANI UPPI\Google Drive\unity installation\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Release\StaticLibs\arm64-v8a\baselib.a" -llog -rdynamic -fuse-ld=bfd.exe

    C:/Users/GNANI UPPI/Desktop/CC4/Library/il2cpp_android_arm64-v8a/il2cpp_cache/0C868C4DC180D1FC9AFF2D4D8AFB8D6A.o: In function `CanvasJSWrapper_init_m94C5B8973CFFF47C9E70ADADD383A87825486219':
    C:\Users\GNANI UPPI\Desktop\CC4\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:426: undefined reference to `init'
    C:/Users/GNANI UPPI/Desktop/CC4/Library/il2cpp_android_arm64-v8a/il2cpp_cache/0C868C4DC180D1FC9AFF2D4D8AFB8D6A.o: In function `CanvasJSWrapper_Logout_m0252CFE916C855AEE3F553270B2090A9C5E0A4A8':
    C:\Users\GNANI UPPI\Desktop\CC4\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:452: undefined reference to `logout'
    C:/Users/GNANI UPPI/Desktop/CC4/Library/il2cpp_android_arm64-v8a/il2cpp_cache/0C868C4DC180D1FC9AFF2D4D8AFB8D6A.o: In function `CanvasJSWrapper_logout_m43363262FC702845AAB3D6D811507358BBB5FCE8':
    C:\Users\GNANI UPPI\Desktop\CC4\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:452: undefined reference to `logout'
    C:/Users/GNANI UPPI/Desktop/CC4/Library/il2cpp_android_arm64-v8a/il2cpp_cache/0C868C4DC180D1FC9AFF2D4D8AFB8D6A.o: In function `CanvasJSWrapper_ActivateApp_m67954CB1527026719ED0E2E535F298A74B297E5C':
    C:\Users\GNANI UPPI\Desktop\CC4\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:461: undefined reference to `activateApp'
    C:/Users/GNANI UPPI/Desktop/CC4/Library/il2cpp_android_arm64-v8a/il2cpp_cache/0C868C4DC180D1FC9AFF2D4D8AFB8D6A.o: In function `CanvasJSWrapper_activateApp_mC2B19B302DD919AE48340D07C19BF90F8CEF5F04':
    C:\Users\GNANI UPPI\Desktop\CC4\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:461: undefined reference to `activateApp'
    C:/Users/GNANI UPPI/Desktop/CC4/Library/il2cpp_android_arm64-v8a/il2cpp_cache/0C868C4DC180D1FC9AFF2D4D8AFB8D6A.o: In function `CanvasJSWrapper_logPurchase_mB3887163B61586FCFDCF382866865C059E90CD6C':
    C:\Users\GNANI UPPI\Desktop\CC4\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:483: undefined reference to `logPurchase'
    C:/Users/GNANI UPPI/Desktop/CC4/Library/il2cpp_android_arm64-v8a/il2cpp_cache/0C868C4DC180D1FC9AFF2D4D8AFB8D6A.o: In function `CanvasJSWrapper_ui_m4C248B4EA95C7F89404AEF6DF5D23055F7069EB5':
    C:\Users\GNANI UPPI\Desktop\CC4\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:512: undefined reference to `ui'
    C:/Users/GNANI UPPI/Desktop/CC4/Library/il2cpp_android_arm64-v8a/il2cpp_cache/0C868C4DC180D1FC9AFF2D4D8AFB8D6A.o: In function `CanvasJSWrapper_InitScreenPosition_mAB527E22421E7AD6283DE5DD5ABB9AFD75DD6E28':
    C:\Users\GNANI UPPI\Desktop\CC4\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:533: undefined reference to `initScreenPosition'
    C:/Users/GNANI UPPI/Desktop/CC4/Library/il2cpp_android_arm64-v8a/il2cpp_cache/0C868C4DC180D1FC9AFF2D4D8AFB8D6A.o: In function `CanvasJSWrapper_initScreenPosition_mBB85115BEB9A723EA2286135F620251D9893CB8F':
    C:\Users\GNANI UPPI\Desktop\CC4\Library\Il2cppBuildCache\Android\arm64-v8a\il2cppOutput/Facebook.Unity.Canvas.cpp:533: undefined reference to `initScreenPosition'
    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)


    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection`1 matchedAssemblyMethodSourceFiles)
    at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions, Boolean throwExceptions)
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <fac3a832ec4249a49c4da1051848dde5>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <fac3a832ec4249a49c4da1051848dde5>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String generatedCppOutputDirectory) (at <fac3a832ec4249a49c4da1051848dde5>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.Boolean platformSupportsManagedDebugging) (at <fac3a832ec4249a49c4da1051848dde5>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <fac3a832ec4249a49c4da1051848dde5>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <fac3a832ec4249a49c4da1051848dde5>:0)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <5cf84f2cc5134566935b135856517214>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <5cf84f2cc5134566935b135856517214>: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 <5cf84f2cc5134566935b135856517214>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <5cf84f2cc5134566935b135856517214>: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 <fac3a832ec4249a49c4da1051848dde5>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
  43. JoshPeterson

    JoshPeterson

    Unity Technologies

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

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

    You have two options:

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

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

    matildejuul

    Joined:
    Feb 15, 2021
    Posts:
    1
    //UPDATE: The error in my case was due to the asset store “energy bar toolkit” plugin.
    Removing it makes IL2CPP compile correctly.//

    Hi

    I have an issue with building .aab for Google Play. When using the "Mono" backend, Unity successfully builds an APK that works fine on Android devices. I too seem to have a problem with IL2CPP when building (log below). The issue occurs both on Mac and Windows.

    I am using Unity 2019.4.18f1.

    Some of the things I have tried:
    - Building a .aab with a blank project and blank scene in the same Unity version - that works fine.
    - Installing and adding Android 10.0 SDK to Unity from Android Studio (an issue I had before).


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

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

    stdout:

    Building libil2cpp.so with AndroidToolChain

    Output directory: /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a

    Cache directory: /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache

    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:34985:15: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_31 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_30, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:35009:15: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_38 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_37, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:35211:15: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_91 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_90, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:35233:15: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_97 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_96, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:40027:14: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_1 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_0, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:40056:15: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_11 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_10, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:44063:15: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_61 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_60, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:44083:15: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_66 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_65, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:44185:15: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_96 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_95, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:44205:16: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_101 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_100, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:46871:15: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_28 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_27, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:46901:15: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_38 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_37, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:47147:16: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_131 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_130, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUITexture_t1679093D89FD7E758DB296145046F8BB10DB7E51 *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:47171:16: error: no matching function for call to 'Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534'

    bool L_138 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_137, /*hidden argument*/NULL);

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /Users/Matilde/Dropbox/LuluLab/MasculinityGame/masculinitygame/LuLu_Masculinity/Temp/StagingArea/Il2Cpp/il2cppOutput/Mad2D.cpp:14913:41: note: candidate function not viable: no known conversion from 'GUIText_t8C9642311EE384C7674771DDF6AB9F222CA1AE1D *' to 'Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *' for 1st argument

    IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);

    ^

    14 errors generated.





    Invocation was: Executable: /Applications/Unity/Hub/Editor/2019.4.18f1/PlaybackEngines/Android<message truncated>
     
    Last edited: Feb 15, 2021
  45. karansinghsengar

    karansinghsengar

    Joined:
    Jun 26, 2019
    Posts:
    8
    I am facing the same issue. Given is the information about the bug
    I have used the external compatible NDK. Please suggest me the solution.

    Exception: C:\Unity\2019.4.22f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!
    Failed running "C:\Unity\2019.4.22f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe" --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARM64" --configuration="Release" --outputpath="D:\Projects\Git\xana-metaverse\Temp\StagingArea\assets\bin\Data\Native\arm64-v8a\libil2cpp.so" --cachedirectory="D:\Projects\Git\xana-metaverse\Assets\..\Library\il2cpp_android_arm64-v8a/il2cpp_cache" --additional-include-directories="C:/Unity/2019.4.22f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Unity/2019.4.22f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="D:/NDK/android-ndk-r19" --profiler-report --map-file-parser=C:/Unity/2019.4.22f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe --directory=D:/Projects/Git/xana-metaverse/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=D:/Projects/Git/xana-metaverse/Temp/StagingArea/Il2Cpp/il2cppOutput
    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: D:\Projects\Git\xana-metaverse\Temp\StagingArea\assets\bin\Data\Native\arm64-v8a
    Cache directory: D:\Projects\Git\xana-metaverse\Library\il2cpp_android_arm64-v8a\il2cpp_cache
    ObjectFiles: 249 of which compiled: 0
    Total compilation time: 141 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: D:\NDK\android-ndk-r19\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\i7\AppData\Local\Temp\tmpE6D9.tmp" -o "D:\Projects\Git\xana-metaverse\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_CD722E7744F5735B3FD6EBD2215D2307\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target aarch64-linux-android21 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=bfd.exe
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/900009534EA3643269A2BF2C971722CA.o: In function `NSString_CreateWithString_m235596B9C11798FFBBB7BFBD8BDDCCC927AB6A91':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25215: undefined reference to `UnityMC_NSString_createWithString'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25215: undefined reference to `UnityMC_NSString_createWithString'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/900009534EA3643269A2BF2C971722CA.o: In function `NSString_Deserialize_mE186A74B7A73A6F868A65AA59181F6568DC93502':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25270: undefined reference to `UnityMC_NSString_deserialize'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25270: undefined reference to `UnityMC_NSString_deserialize'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/900009534EA3643269A2BF2C971722CA.o: In function `NSString_GetLength_m2B6C40C6D4C6A7A2EBB32E6BB7F0CF1D71C5B6E2':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25237: undefined reference to `UnityMC_NSString_getLength'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25237: undefined reference to `UnityMC_NSString_getLength'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/900009534EA3643269A2BF2C971722CA.o: In function `NSString_GetLengthOfBytes_mA769BCB11891D2BE276287D7FE65ABB02C77A2E0':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25226: undefined reference to `UnityMC_NSString_lengthOfBytesUsingEncoding'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/900009534EA3643269A2BF2C971722CA.o: In function `NSString_GetBytes_mB021FC62F47A4C7B44BC0B7DF4837FBD1E90D1C2':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25248: undefined reference to `UnityMC_NSString_getBytes'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/900009534EA3643269A2BF2C971722CA.o: In function `NSString_GetLength_m2B6C40C6D4C6A7A2EBB32E6BB7F0CF1D71C5B6E2':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25237: undefined reference to `UnityMC_NSString_getLength'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/900009534EA3643269A2BF2C971722CA.o: In function `NSString_GetLengthOfBytes_mA769BCB11891D2BE276287D7FE65ABB02C77A2E0':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25226: undefined reference to `UnityMC_NSString_lengthOfBytesUsingEncoding'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/900009534EA3643269A2BF2C971722CA.o: In function `NSString_GetBytes_mB021FC62F47A4C7B44BC0B7DF4837FBD1E90D1C2':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25248: undefined reference to `UnityMC_NSString_getBytes'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/900009534EA3643269A2BF2C971722CA.o: In function `NSString_Serialize_m4CBE73237C43761720E66E4D11EE97B4DF62B526':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25259: undefined reference to `UnityMC_NSString_serialize'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25259: undefined reference to `UnityMC_NSString_serialize'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/900009534EA3643269A2BF2C971722CA.o: In function `NativeApi_CFRelease_m53648043E4BB198C1E5DCC5E286F2AEC8C7E5185':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25309: undefined reference to `UnityMC_CFRelease'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25309: undefined reference to `UnityMC_CFRelease'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/900009534EA3643269A2BF2C971722CA.o: In function `NSString_CreateWithString_m235596B9C11798FFBBB7BFBD8BDDCCC927AB6A91':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25215: undefined reference to `UnityMC_NSString_createWithString'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/900009534EA3643269A2BF2C971722CA.o: In function `NSString_GetLength_m2B6C40C6D4C6A7A2EBB32E6BB7F0CF1D71C5B6E2':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp20.cpp:25237: undefined reference to `UnityMC_NSString_getLength'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `MCSession_GetEnabled_mEC347D76D504043C111A6729D357F64660D46FAC':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47547: undefined reference to `UnityMC_Delegate_getEnabled'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47547: undefined reference to `UnityMC_Delegate_getEnabled'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `MCSession_SetEnabled_mF3BC98750D615FFF2022D5B76D0B8DB8643775B1':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47537: undefined reference to `UnityMC_Delegate_setEnabled'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47537: undefined reference to `UnityMC_Delegate_setEnabled'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `MCSession_InitWithName_m5D4459A671155F2C0E07235BAE22B30A69A9E0DA':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47493: undefined reference to `UnityMC_Delegate_initWithName'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47493: undefined reference to `UnityMC_Delegate_initWithName'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `MCSession_SendToAllPeers_m7A1C02515DE2D594B1C43037937EAA6F150C2A7C':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47482: undefined reference to `UnityMC_Delegate_sendToAllPeers'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47482: undefined reference to `UnityMC_Delegate_sendToAllPeers'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `MCSession_GetReceivedDataQueueSize_mD6C05ED0503732AACEEF1256612704A00C5F4D74':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47504: undefined reference to `UnityMC_Delegate_receivedDataQueueSize'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47504: undefined reference to `UnityMC_Delegate_receivedDataQueueSize'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `MCSession_DequeueReceivedData_m25F571EB3FCAFF389F67A75EB85B0F077E5B1A18':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47515: undefined reference to `UnityMC_Delegate_dequeueReceivedData'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47515: undefined reference to `UnityMC_Delegate_dequeueReceivedData'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `MCSession_GetConnectedPeerCount_m33CDDF15489AA865D47BF27C5EA16FC569F6A395':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47526: undefined reference to `UnityMC_Delegate_connectedPeerCount'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47526: undefined reference to `UnityMC_Delegate_connectedPeerCount'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `NSData_GetLength_mFDB54BF37B4A103594C95D334044BF16B9FA4541':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47887: undefined reference to `UnityMC_NSData_getLength'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47887: undefined reference to `UnityMC_NSData_getLength'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `NSData_CreateWithBytes_m299A3F751B026BFE26AE606C9C4A1D0CCFC17704':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47909: undefined reference to `UnityMC_NSData_createWithBytes'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47909: undefined reference to `UnityMC_NSData_createWithBytes'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `NSData_CreateWithBytesNoCopy_mC50505908918BCED34D4344FA3722F67CBCB8122':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47920: undefined reference to `UnityMC_NSData_createWithBytesNoCopy'
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47920: undefined reference to `UnityMC_NSData_createWithBytesNoCopy'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `NSData_GetBytes_mC2B72B1DAC887C96C2D7E34D8E74CA00EEDFBBAA':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47898: undefined reference to `UnityMC_NSData_getBytes'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `NSData_GetLength_mFDB54BF37B4A103594C95D334044BF16B9FA4541':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47887: undefined reference to `UnityMC_NSData_getLength'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `NSData_GetBytes_mC2B72B1DAC887C96C2D7E34D8E74CA00EEDFBBAA':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47898: undefined reference to `UnityMC_NSData_getBytes'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `NSError_GetCode_m2DD1448D648D8F7ECDC4C3B72929F75E0FDC96B5':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:48219: undefined reference to `UnityMC_NSError_code'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `NSError_GetLocalizedDescription_mA40BFDB05AC0478CC263AA60425DB5266283BD4F':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:48230: undefined reference to `UnityMC_NSError_localizedDescription'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `NSError_GetCode_m2DD1448D648D8F7ECDC4C3B72929F75E0FDC96B5':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:48219: undefined reference to `UnityMC_NSError_code'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `NSError_GetLocalizedDescription_mA40BFDB05AC0478CC263AA60425DB5266283BD4F':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:48230: undefined reference to `UnityMC_NSError_localizedDescription'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `MCSession_GetReceivedDataQueueSize_mD6C05ED0503732AACEEF1256612704A00C5F4D74':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47504: undefined reference to `UnityMC_Delegate_receivedDataQueueSize'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `MCSession_GetConnectedPeerCount_m33CDDF15489AA865D47BF27C5EA16FC569F6A395':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47526: undefined reference to `UnityMC_Delegate_connectedPeerCount'
    D:/Projects/Git/xana-metaverse/Library/il2cpp_android_arm64-v8a/il2cpp_cache/D7E2F95EC064F1A8C50C5CCB085C24A8.o: In function `NSData_GetLength_mFDB54BF37B4A103594C95D334044BF16B9FA4541':
    D:\Projects\Git\xana-metaverse\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp19.cpp:47887: undefined reference to `UnityMC_NSData_getLength'
    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, List`1 foundAssemblies)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)
    stderr:
    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: D:\NDK\android-ndk-r19\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\i7\AppData\Local\Temp\tmpE6D9.tmp" -o "D:\Projects\Git\xana-metaverse\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_CD722E7744F5735B3FD6EBD2215D2307<message truncated>
     
  46. JoshPeterson

    JoshPeterson

    Unity Technologies

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

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

    You have two options:

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

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

    karansinghsengar

    Joined:
    Jun 26, 2019
    Posts:
    8
    Hello @JoshPeterson
    Thanks for your quick response.
    According to your first option. I found the extern methods where i saw that they are already in the format like using [Dllimport("__Internal")].

    Given is the instance of the code

    [DllImport("__Internal", EntryPoint="UnityMC_Delegate_initWithName")]
    static extern IntPtr InitWithName(NSString name, NSString serviceType);
    [DllImport("__Internal", EntryPoint="UnityMC_Delegate_receivedDataQueueSize")]
    static extern int GetReceivedDataQueueSize(MCSession self);
    [DllImport("__Internal", EntryPoint="UnityMC_Delegate_dequeueReceivedData")]
    static extern NSData DequeueReceivedData(MCSession self);
    [DllImport("__Internal", EntryPoint="UnityMC_Delegate_connectedPeerCount")]
    static extern int GetConnectedPeerCount(MCSession self);
    [DllImport("__Internal", EntryPoint="UnityMC_Delegate_setEnabled")]
    static extern void SetEnabled(MCSession self, bool enabled);
    [DllImport("__Internal", EntryPoint="UnityMC_Delegate_getEnabled")]
    static extern bool GetEnabled(MCSession self);


    All the extern methods shown in the error are like this. What i can do now?
     
  48. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,578
    These methods all need to have an implementation in native code. Based on the names of the parameter types (e.g. NSString), I would guess that these methods are for iOS only. You will need to sue #if statements in the C# code where these are defined to ensure that they are only compiled on iOS.
     
  49. karansinghsengar

    karansinghsengar

    Joined:
    Jun 26, 2019
    Posts:
    8
    Got it.
    Its working now.
    Thankyou so much @JoshPeterson
    Hope it wont give any error on IOS. :)
     
    JoshPeterson likes this.
  50. ashwingv93

    ashwingv93

    Joined:
    Sep 30, 2019
    Posts:
    6
    @JoshPeterson, even we are facing a similar issue after upgrading to Unity to 2019.4.20f1.
    We are using Android NDK - r19 (19.0.5232133)
    Have attached the full error log which occurs while generating il2cpp.

    /Users/build/Jenkins/workspace/Build/ProjectFolder/Tools/Android/SDKs/OSX/android-ndk-r19/toolchains/llvm/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.gold: error: cannot open crtbegin_so.o: No such file or directory
    /Users/build/Jenkins/workspace/Build/ProjectFolder/Tools/Android/SDKs/OSX/android-ndk-r19/toolchains/llvm/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.gold: error: cannot open crtend_so.o: No such file or directory
    /Users/build/Jenkins/workspace/Build/ProjectFolder/Tools/Android/SDKs/OSX/android-ndk-r19/toolchains/llvm/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.gold: error: cannot find -llog
     

    Attached Files:

    Last edited: Mar 17, 2021