Unity Android IL2CPP Build Error

When I use IL2CPP when I want to install the game, it gives an error and I cannot get APK Output. (The MONO option works fine.)


I’ve been dealing with it for a week, I would be glad if you could help me.


Detailed output of the error on the console screen:


Internal build system error. BuildProgram exited with code -2147024893. System.IO.DirectoryNotFoundException: Could not find a part of the path ‘C:\Program Files\Unity\Hub\Editor\2021.2.5f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\�l2cpp\Release\StaticLibs\armeabi-v7a\compile.rsp’. at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize) at System.IO.StreamReader…ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks) at System.IO.File.InternalReadAllText(String path, Encoding encoding) at System.IO.File.ReadAllText(String path) at NiceIO.NPath.SystemIOFileSystem.File_ReadAllText(NPath path) at NiceIO.NPath.WindowsFileSystem.File_ReadAllText(NPath path) at Bee.Core.Stevedore.VirtualFileSystem.File_ReadAllText(NPath path) at NiceIO.NPath.RelayingFileSystem.File_ReadAllText(NPath path) at Bee.Core.BuildProgramFileSystem.File_ReadAllText(NPath path) at NiceIO.NPath.ReadAllText() at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupCompile(AndroidSharedLibraryConfiguration config, String name, AndroidTargetDeviceType deviceType, NPath sourceFilePath) at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupLibUnityLibrary()+MoveNext() at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at System.Collections.Generic.List1.AddRange(IEnumerable1 collection) at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupPlayerBuild() at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram() at PlayerBuildProgramTypeWrapper.Run(String args) at Program.Main(String args) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Add comment

@xxmariofer Thanks for your reply, the file path is not missing anything.

@xxmariofer When I build apk not targeting Armv7, I get the same error for Arm64.