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...
I think, the file is locked as READ-ONLY.
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.
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.
Try this solution :
Go to Files > Made File Writable
Here you go , you can now edit your files .
禁用ideavim,用右下角的锁图标禁用使文件只读
locate ideaVim and disenable it you can find it at the bottom right of your android studio
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.