Android Studio failed to open by giving error "Files Locked"

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.


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.


Solved in Windows 7:

  1. Go to folder where android-studio is installed. (e.g. C:\Program Files (x86)\Android\android-studio)

  2. Now go up one folder. (i.e. C:\Program Files (x86)\Android)

  3. Right click on the android-studio folder and go to Properties.

  4. In the Properties window, go to the Security tab.

  5. Click the Edit button.

  6. A new window will open, here you click the Users (your-username-or-your-group-name)

  7. From the list below, check Allow in front of Full control.

  8. 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.