Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio -- can't edit files

Tags:

android

I suppose this a really dumb question, and I can't find any others like it so I suppose it is REALLY dumb, but it is still driving me nuts and I can't figure this out.

So every time I open a file in Android Studio it won't let me edit it, like it is in some kind of read-only or selection mode or something. It'll still let me select and drag text and paste text... just not type. Well, usually. I don't know why but after fiddling around a bunch sometimes it will sometimes let me edit and I can't tell what I'm doing to get that to change.

Any help would be appreciated, I'm sure this is a quick fix...

like image 262
sjschmidt93 Avatar asked May 23 '15 01:05

sjschmidt93


3 Answers

I think, the file is locked as READ-ONLY. enter image description here

You can click on the lock icon to toggle the READ-ONLY Option.The option can be found at the BOTTOM-RIGHT Corner of the Android Studio.

like image 160
theapache64 Avatar answered Oct 19 '22 09:10

theapache64


I also faced same problem.The solution that helped me is to Invalidating Caches / restarting android studio.

Go to Files -> Invalidate Caches / Restart and wait for Rebuilding the project.

like image 21
flashberry Avatar answered Oct 19 '22 09:10

flashberry


Try this solution :

Go to Files > Made File Writable

Here you go , you can now edit your files .

like image 1
Hanisha Avatar answered Oct 19 '22 08:10

Hanisha