I am getting this error pretty much randomly (when coding, when importing assets, when opening the project in unity):
ApplicationException: Unable to find a suitable compiler
UnityEditor.Scripting.ScriptCompilers.CreateCompilerInstance (MonoIsland island, Boolean buildingForEditor, BuildTarget targetPlatform) (at C:/BuildAgent/work/7535de4ca26c26ac/Editor/Mono/Scripting/ScriptCompilers.cs:99)
I have already searched google multiple times but there is no definite answer to this. The only thing that resolves this error for me is âReimport all assetsâ in the project window. I can then work for a 1-2 hours until this error rises up again. As the project grows so does the âReimport allâ. It is no longer a solution. Itâs a productivity killer.
I have a pretty much standard unity project. No fancy stuff. Using 2dtoolkit and CartoonFX from the AssetStore. Rest is just standard mp3s/pngs/jpgs.
i have figured it out⌠that was bcoz of importing asset one of my imported asset got corruptedâŚafter deleting its files and .asset file errors gone
after some times of struggling i have figured out the solution,it was simple.open you editor log and it will suggest you which type of asset have corrupted.Towards me i get this message
âApplicationException: Unable to find a suitable compiler for sources with extension âassetâ (Output assembly: Temp/Assembly-CSharp-firstpass.dll)â
then the solution was obvious,i use windows explorer searched all my file in my game folder which have suffix â.assetâ,then delete it one by one,when i delete one file i reopen unity once until the error disappeared,toward me the project only contain dozens of file which suffixed with â.assetâ .so within one hours i have found the error file (for me the error file is âresources.assetâ in a model package i have imported previously)
before this,i have searched several times for a solutions but only get one which was use the âreimport allâ button,it was helpful but only last a period of time then the error occur again, finally i canât endure the reimport speed so i try to find my solution and fortunately i have succeed. so i share the way here hope that anyone with same problem can get helped.