ApplicationException: Unable to find a suitable compiler

Hello,

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.

Any help would be much appreciated.

I still get this. Any thoughts/hints? The error message gives me pretty much nothing. Not even a hint which file it has a problem with.

same with me…ANY HELPPP

Which platform are you targeting?

Android

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 :slight_smile:

1 Like

I also encountered this problem. I don’t know what to do :frowning:

Assets > Reimport All

2 Likes

After 3 days of headache, this helped:

Just delete the library folder in your project, and reopen unity with your project, it will automatically reimport ALL and fixed that error.

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.