Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: Failed to initialize editor

I'm new with Android Studio technology. I've just launched a new empty project from scratch on Windows 10 machine. At first in my activity_main.xml file I could see an error "editor is unavaible until next gradle synch". After clicking on "Synch Project with Gradle Files" the error message turns into "Failed to initialize editor" as you can see on the pic below:

enter image description here

As you can see build console shows no errors. Also green arrow on the top bar is muted. How can I fix this issue?

Android Studio version: 4.02 JDK version: 1.8.0_261

Note I've got Avast Antivirus installed on my computer. I'm not sure if it changes anything but in few similar topics people repored this program as an issue interfering with Android Studio. However my avast quarantine remains empty.

Update/Solution In my case it turned out that downgrading my Android Studio from 4.0.2 to 3.5.3 version solved this problem. Now everything works fine.

like image 761
andrzej541 Avatar asked Sep 05 '20 03:09

andrzej541


1 Answers

I don't know why it happened, it happened for me on a project that was working earlier. Helped me File -> Invalidate Cashes / Restart in Android Studio

like image 53
MagicUnderHood Avatar answered Sep 28 '22 01:09

MagicUnderHood