For some unknown reason, I can\'t edit files in Android Studio. This include both java and xml files.
When I launch Android Studio (ver 1.2.2) , everything is fine.
i was facing same problem in project. i was change the time of my computer which cause this error. so after invalidate caches and restart studio , it works fine.
i was facing same problem in macox. i was installed some randomly plugins which cause this error. so after removing vim editor(in my case) it works fine.
The only solution that worked with me:
tl;dr, open the search with cmd + shift + f and close it again. All should be good.
I was also having the problem of suddenly losing the ability to type in the editor on my mac. There was never any rhyme or reason. I tried the suggestions here and sadly they didn't work.
What worked for me is opening the search box with cmd + shift + f (on mac). Once that opened and I closed it, I could type again. I also noticed the things I had been trying to type were in the search bar.
1- Close Android Studio.
2 - Remove .idea folder from your project
3 - Start Android Studio and open project.
I had this problem as well, but it was because my focus was in an EditText view in the emulator. I could not get it to work by clicking the right scroll bar. It was only when I noticed the cursor n the emulator, and hit tab, did my editor work again.