For some unknown reason, I can't edit files in Android Studio. This include both java and xml files and other files ,
I can't edit nothing - cut files , or delete , write , nothing worked..
Files are not locked as Read-Only. I checked.
Restarting Android Studio did not resolve my problem.
Please Help me ! Thanks
Asked
Active
Viewed 1,594 times
0

Inox
- 11
- 2
-
What error does the editor show? Is the editor running as the same user as the user who owns the files? Can you create and save new files? What is the error then? – Dave S Jun 04 '17 at 21:33
-
no it's not running same user that file – Inox Jun 04 '17 at 21:35
-
it's another person file , it's then impossible to edit files ? – Inox Jun 04 '17 at 21:37
-
If a file belongs to user "foo" and the write permission is not set to ALL users, then user "bar" can not edit the file. If you have read access, you can copy the files to your own folder and edit the copies. If you have root / admin access you can also change the owner but that might break things unless you know what you are doing. – Dave S Jun 04 '17 at 21:43
-
I Have that game apk files on my pc if if open them with notepad++ shows weird symbols and there i can edit all what i want... – Inox Jun 04 '17 at 21:48
-
but when i open that file in android studio then its on normal format but cant edit – Inox Jun 04 '17 at 21:48
-
looks like best way is copy all files then – Inox Jun 04 '17 at 21:49
-
and if i extract my apk to another file then i can open and edit files in android studio , but again weird symbols shows – Inox Jun 04 '17 at 21:53
-
You're trying to edit someone else's compiled and packaged android application that you downloaded? You do not have the source code for it? – Dave S Jun 04 '17 at 22:01
-
yes it's someone else's compiled application that i downloaded , have some ideas ? how i can edit it – Inox Jun 05 '17 at 09:28
-
Possible duplicate of [Is there a way to get the source code from an APK file?](https://stackoverflow.com/questions/3593420/is-there-a-way-to-get-the-source-code-from-an-apk-file) – Dave S Jun 05 '17 at 16:13
-
where to find source code – Inox Jun 05 '17 at 19:18
1 Answers
1
This Can happen when you loose the focus of your Code View. you can keep focus by having a click on Scroll bar (right side) in the Android Studio.
This problem was in Android Studio version 1.2.2, So haven't experienced recently. please Update Android Studio.

あさひ
- 13
- 5