Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - File is read only

Tags:

java

android

I've downloaded a library from github and I would like to edit the class to suit my needs. But Android Studio won't allow me saying "File is read only" when I try to type and edit the class.

linked image so you can see what I mean

like image 607
NEWBIEHERE Avatar asked Feb 14 '26 06:02

NEWBIEHERE


2 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 189
Pratik Butani Avatar answered Feb 16 '26 20:02

Pratik Butani


Try this: Go to the file in the Windows explorer and make an rightclick and then click on properties. Uncheck write protect! If this not function try to start Andruid Studio as adminstrator.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!