Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unlock Locked java files Android studio

Can some tell me why i am not able to edit some java files in android studio(2.2.2) and why i am seeing a lock at the java files. How to make it editable.enter image description here

enter image description here

like image 925
tech office Avatar asked Nov 17 '16 07:11

tech office


People also ask

How do you unlock a locked file?

Right-click on the file. In the menu that appears, select Lock File. To unlock, right-click the file and select Unlock File.

Can Android studio run Java files?

Android Studio can now build Java modules and run them in the local JRE.


1 Answers

If it is a part of any library i think you should not unlock it. But it is a class created by you then you can unlock it .

At right corner below of your logcat you can see a lock like this :

Locked class symbol

you can achieve this by clicking the lock then it will unlock the class

like image 117
Sushrita Avatar answered Oct 29 '22 06:10

Sushrita