Android stuido-failed to get the compiler information error

Hi! suddenly android studio started to behave very slow and i realize all the functions were in red i’m getting this error : “failed to get the compiler information” for all the functions. The code is compiling but the compiler is very slow.
Someone had this error before?