After running once successfully, Android Studio is getting failed to open. The error is:
Files in C:\Program Files (x86)\Android\android-studio\system\caches are locked. Android Studio will not be able to start.
Did any one find its solution?
Solved in Windows 7:
Go to folder where android-studio is installed. (e.g. C:\Program Files (x86)\Android\android-studio
)
Now go up one folder. (i.e. C:\Program Files (x86)\Android
)
Right click on the android-studio
folder and go to Properties.
In the Properties window, go to the Security tab.
Click the Edit button.
A new window will open, here you click the Users (your-username-or-your-group-name)
From the list below, check Allow in front of Full control.
Press OK, then again OK.
Now you can use Android Studio easily instead of "Running it As Administrator" every time.
If you are running in Windows 7 / Vista/ etc. then try running Android Studio as administrator. I was having the same problem and this fixed it for me.
I installed it for all users too, and got this same error on second run. Didn't want to reinstall it, and also prefer not to run programs as admin unless necessary, so I just changed a couple file permissions and it runs fine.
I changed the settings on C:\Program Files (x86)\Android\android-studio and let it apply to all sub-folders -- removed Read-Only, and gave localhost/Users group permissions to modify files in this folder. Worked fine afterwards. If you want to be more secure, just give your user permissions to modify those folders.
During the installation, select "install for the current user". Android Studio will be installed in the user's folders, without any authorization issues. Personally I do not like to run program with Administrator power.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With