i cant run the game becuause of “Compilation failed because the compiler couldn’t be executed!” and three simaler errors. how can i fix this.
the other errors are:
ApplicationException: Unable to find a
suitable compiler
UnityEditor.Scripting.ScriptCompilers.CreateCompilerInstance
(MonoIsland island) (at
C:/BuildAgent/work/842f9557127e852/Editor/Mono/Scripting/ScriptCompilers.cs:87)
Failed to create compiler instance
KeyNotFoundException: The given key
was not present in the dictionary.
System.Collections.Generic.Dictionary2[System.String, UnityEditor.VisualStudioIntegration.ScriptingLanguage].get_Item (System.String key) UnityEditor.VisualStudioIntegration.SolutionSynchronizer.ProjectFile (MonoIsland island, Boolean forVisualStudio) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/VisualStudioIntegration/SolutionSynchronizer.cs:253) UnityEditor.VisualStudioIntegration.SolutionSynchronizer+<GetProjectEntries>c__AnonStorey10.<>m__1D (MonoIsland i) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/VisualStudioIntegration/SolutionSynchronizer.cs:311) System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10
2[UnityEditor.Scripting.MonoIsland, System.String].MoveNext
()
System.Collections.Generic.List1[System.String].AddEnumerable (IEnumerable
1 enumerable)
System.Collections.Generic.List1[System.String]..ctor (IEnumerable
1 collection)
System.Linq.Enumerable.ToArray[String]
(IEnumerable1 source) UnityEditor.VisualStudioIntegration.SolutionSynchronizer.GetProjectEntries (IEnumerable
1 islands, Boolean
forVisualStudio) (at
C:/BuildAgent/work/842f9557127e852/Editor/Mono/VisualStudioIntegration/SolutionSynchronizer.cs:316)
UnityEditor.VisualStudioIntegration.SolutionSynchronizer.SolutionText
(IEnumerable1 islands, Boolean onlyCSharp) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/VisualStudioIntegration/SolutionSynchronizer.cs:300) UnityEditor.VisualStudioIntegration.SolutionSynchronizer.SyncSolution (IEnumerable
1 islands) (at
C:/BuildAgent/work/842f9557127e852/Editor/Mono/VisualStudioIntegration/SolutionSynchronizer.cs:291)
UnityEditor.VisualStudioIntegration.SolutionSynchronizer.Sync
() (at
C:/BuildAgent/work/842f9557127e852/Editor/Mono/VisualStudioIntegration/SolutionSynchronizer.cs:131)
UnityEditor.SyncVS.SyncVisualStudioProjectIfItAlreadyExists
() (at
C:/BuildAgent/work/842f9557127e852/Editor/Mono/SyncProject.cs:89)
Failed to create compiler instance
UnityEditor.HostView:OnGUI()
Exception: Error building Player
because scripts had compiler errors
UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings
(Boolean askForBuildLocation,
BuildOptions forceOptions) (at
C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:367)
UnityEditor.BuildPlayerWindow.GUIBuildButtons
(Boolean enableBuildButton, Boolean
enableBuildAndRunButton, Boolean
canInstallInBuildFolder) (at
C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:979)
UnityEditor.BuildPlayerWindow.ShowBuildTargetSettings
() (at
C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:953)
UnityEditor.BuildPlayerWindow.OnGUI ()
(at
C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:726)
System.Reflection.MonoMethod.Invoke
(System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder
binder, System.Object parameters,
System.Globalization.CultureInfo
culture) Rethrow as
TargetInvocationException: Exception
has been thrown by the target of an
invocation.
System.Reflection.MonoMethod.Invoke
(System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder
binder, System.Object parameters,
System.Globalization.CultureInfo
culture)
System.Reflection.MethodBase.Invoke
(System.Object obj, System.Object
parameters)
UnityEditor.HostView.Invoke
(System.String methodName,
System.Object obj) (at
C:/BuildAgent/work/842f9557127e852/Editor/Mono/GUI/DockArea.cs:225)
UnityEditor.HostView.Invoke
(System.String methodName) (at
C:/BuildAgent/work/842f9557127e852/Editor/Mono/GUI/DockArea.cs:218)
UnityEditor.HostView.OnGUI () (at
C:/BuildAgent/work/842f9557127e852/Editor/Mono/GUI/DockArea.cs:119)