Run on Mac M1 max
Failed to build Unity2021.2.7f1 android project using Android Studio 2020.3.1
Build failed with 0 successful nodes and 0 failed ones
Error: Internal build system error. BuildProgram exited with code 1.
Unity.IL2CPP.Bee.BuildLogic.ToolchainNotFoundException: IL2CPP C++ code builder is unable to build C++ code. In order to build C++ code for Android, you must have the following NDK version installed:
* Android NDK v21d
Unable to detect any compatible Android NDK installation!
* Found Android NDK installation at "/Applications/Unity/Hub/Editor/2021.2.7f1/PlaybackEngines/AndroidPlayer/SDK/ndk/android-ndk-r21d" but building is not supported on this host
The correct Android NDK can be installed through Unity Hub.
at Unity.IL2CPP.Bee.BuildLogic.Android.AndroidBuildLogic.UserAvailableToolchainFor(Architecture architecture, NPath toolChainPath, NPath sysRootPath) in /Users/bokken/build/output/unity/il2cpp/Bee/Unity.IL2CPP.Bee.BuildLogic.Android/AndroidBuildLogic.cs:line 159
at Unity.IL2CPP.Bee.IL2CPPExeCompileCppBuildProgram.BuildProgram.Main(String[] args, String currentDirectory) in Unity.IL2CPP.Bee.IL2CPPExeCompileCppBuildProgram.dll:token 0x6000002+0x0
at il2cpp.Compilation.InProcessBuildProgram.StartImpl(String workingDirectory, String[] arguments) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Compilation/InProcessBuildProgram.cs:line 51
Error: Unity.IL2CPP.Building.BuilderFailedException: Build failed with 0 successful nodes and 0 failed ones
Error: Internal build system error. BuildProgram exited with code 1.
Unity.IL2CPP.Bee.BuildLogic.ToolchainNotFoundException: IL2CPP C++ code builder is unable to build C++ code. In order to build C++ code for Android, you must have the following NDK version installed:
* Android NDK v21d
Unable to detect any compatible Android NDK installation!
* Found Android NDK installation at "/Applications/Unity/Hub/Editor/2021.2.7f1/PlaybackEngines/AndroidPlayer/SDK/ndk/android-ndk-r21d" but building is not supported on this host
The correct Android NDK can be installed through Unity Hub.
at Unity.IL2CPP.Bee.BuildLogic.Android.AndroidBuildLogic.UserAvailableToolchainFor(Architecture architecture, NPath toolChainPath, NPath sysRootPath) in /Users/bokken/build/output/unity/il2cpp/Bee/Unity.IL2CPP.Bee.BuildLogic.Android/AndroidBuildLogic.cs:line 159
at Unity.IL2CPP.Bee.IL2CPPExeCompileCppBuildProgram.BuildProgram.Main(String[] args, String currentDirectory) in Unity.IL2CPP.Bee.IL2CPPExeCompileCppBuildProgram.dll:token 0x6000002+0x0
at il2cpp.Compilation.InProcessBuildProgram.StartImpl(String workingDirectory, String[] arguments) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Compilation/InProcessBuildProgram.cs:line 51
at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, Il2CppCommandLineArguments il2CppCommandLineArguments, BuildingOptions buildingOptions, Boolean throwExceptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 331
Bug report case id: 1392400