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.
  2. Dismiss Notice

Build for 64 Bit Fails

Discussion in 'Editor & General Support' started by David69, Feb 16, 2021.

  1. David69

    David69

    Joined:
    Oct 2, 2018
    Posts:
    31
    Hi,

    My Game builds fine on Mono but when I switch to use il2cpp it fails with ERROR:

    Any Ideas??

    Failed running C:\Program Files\Unity\Hub\Editor\2018.3.11f1\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:\Unity2020\Test_Android\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\Unity2020\Test_Android\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2018.3.11f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2018.3.11f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --baselib-directory="C:/Program Files/Unity/Hub/Editor/2018.3.11f1/Editor/Data/PlaybackEngines/AndroidPlayer\Variations\il2cpp\Release\StaticLibs\armeabi-v7a" --avoid-dynamic-library-copy --tool-chain-path="D:/unityndk/android-ndk-r19" --incremental-g-c-time-slice=3 --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2018.3.11f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=D:/Unity2020/Test_Android/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=D:/Unity2020/Test_Android/Temp/StagingArea/Il2Cpp/il2cppOutput
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
    There should be an additional error message in the editor log near this one, which will have more details. Can you provide it?
     
  3. David69

    David69

    Joined:
    Oct 2, 2018
    Posts:
    31
    This is the whole Error Log


    Failed running C:\Program Files\Unity\Hub\Editor\2018.3.11f1\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:\Unity2020\Test_Android\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\Unity2020\Test_Android\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2018.3.11f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2018.3.11f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --baselib-directory="C:/Program Files/Unity/Hub/Editor/2018.3.11f1/Editor/Data/PlaybackEngines/AndroidPlayer\Variations\il2cpp\Release\StaticLibs\armeabi-v7a" --avoid-dynamic-library-copy --tool-chain-path="D:/unityndk/android-ndk-r19" --incremental-g-c-time-slice=3 --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2018.3.11f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=D:/Unity2020/Test_Android/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=D:/Unity2020/Test_Android/Temp/StagingArea/Il2Cpp/il2cppOutput

    stdout:
    Running il2cpp.exe in server GC mode.
    Building libil2cpp.so with AndroidToolChain
    Output directory: D:\Unity2020\Test_Android\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: D:\Unity2020\Test_Android\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.)
    ---> System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
    --- End of inner exception stack trace ---
    at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions)
    at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)
    ---> (Inner Exception #1) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #2) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #3) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #4) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #5) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #6) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #7) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #8) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #9) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #10) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #11) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #12) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #13) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #14) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #15) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #16) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #17) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(Exec<message truncated>
     
  4. David69

    David69

    Joined:
    Oct 2, 2018
    Posts:
    31
    Editor Log Attached.
     

    Attached Files:

  5. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
    Thanks, the error here indicates that IL2CPP cannot find the Android NDK tools to run the C++ compiler. I suspect that the Android NDK is not installed correctly. Can you check that it is installed via the Unity Hub?
     
  6. David69

    David69

    Joined:
    Oct 2, 2018
    Posts:
    31
    I have 2 versions on Unity on my Machine (for legacy projects) it appears only the 2018 has Android support ! However my Project is built in 2020 Version and does build for Android (NDK files in correct paths) - so How do I install Android Support for 2020 version?

    upload_2021-2-17_15-39-17.png
    upload_2021-2-17_15-40-53.png
     
  7. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
  8. David69

    David69

    Joined:
    Oct 2, 2018
    Posts:
    31
    Ok thanks for the help Josh, I just couldn't interpret the error message.
     
  9. David69

    David69

    Joined:
    Oct 2, 2018
    Posts:
    31
    I re-installed 202 Version which no includes Android build support, But I still get errors, see Log below:

    Failed running C:\Program Files\Unity\Hub\Editor\2020.1.0f1\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:\Unity2020\Test_Android\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\Unity2020\Test_Android\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2020.1.0f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2020.1.0f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --baselib-directory="C:/Program Files/Unity/Hub/Editor/2020.1.0f1/Editor/Data/PlaybackEngines/AndroidPlayer\Variations\il2cpp\Release\StaticLibs\armeabi-v7a" --avoid-dynamic-library-copy --tool-chain-path="D:/unityndk/android-ndk-r19" --incremental-g-c-time-slice=3 --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2020.1.0f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=D:/Unity2020/Test_Android/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=D:/Unity2020/Test_Android/Temp/StagingArea/Il2Cpp/il2cppOutput

    stdout:
    Running il2cpp.exe in server GC mode.
    Building libil2cpp.so with AndroidToolChain
    Output directory: D:\Unity2020\Test_Android\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: D:\Unity2020\Test_Android\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.) (The system cannot find the file specified.)
    ---> System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
    --- End of inner exception stack trace ---
    at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions)
    at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)
    ---> (Inner Exception #1) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #2) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #3) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #4) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #5) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #6) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #7) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #8) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #9) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #10) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #11) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #12) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #13) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #14) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #15) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #16) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---

    ---> (Inner Exception #17) System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode)
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode)
    at Unity.IL2CPP.Shell.Execute(ExecuteAr<message truncated>
     
  10. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
    Sorry, I not sure what 202 Version version means. Is this some version of Unity?
     
  11. David69

    David69

    Joined:
    Oct 2, 2018
    Posts:
    31
    It's 2020. But I sorted it. There were 2 hidden check boxes which by default are unchecked when you install Android dev ndk. I only found them by accident. After checking them it all worked.
     
    JoshPeterson likes this.
  12. Rico2014

    Rico2014

    Joined:
    Jan 27, 2022
    Posts:
    1
    Where are these boxes in the hub installer??
     
  13. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,749
    Last I saw they were a fold-out of the Android target when installing modules or a new editor.

    So when you tick the box to install Android, look nearby to find a little > sign that you can open to see other Android-ey things to install, such as JDK, NDK, SDK, I forget what all.