I get the following error when Building my application in Unity 2021.2.3f1
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.3f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\�l2cpp\Release\StaticLibs\arm64-v8a\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.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at System.Collections.Generic.List`1.AddRange(IEnumerable`1 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&)
At first the 'il2cpp' in `'C:\Program Files\Unity\Hub\Editor\2021.2.3f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\�l2cpp\Release\StaticLibs\arm64-v8a\compile.rsp'` I thought it was because of the letter "i" but I'm not sure about that.
Also, while installing on Android SDK 31, I noticed that libraries such as "System.IO" do not work in apk. Google wants minimum 30 sdk to update my apps but I can't even build the app.
↧