When I open the Android Studio it gives the following error:
java.io.FileNotFoundException: C:\\Users\\HP\\.AndroidStudio2.2\\config\\port.lock (Access is de
In my case, Java
was installed under a different admin account on the default path, while I was trying to use Java
under my admin account.
After a new installation of Java
under my own admin account, the problem got solved.
I had the same problem and in my case the problem was with permissions for the config folder - for some reason the config folder was read only. I changed the permissions and it was ok.
Try to to delete everything under C:\Users\Administrator.gradle\caches. There is a cache.properties.lock that is holding a global lock which is preventing you from running your script. Using MacOS you will find it in your home directory ~/.gradle/caches
It Works for me. I hope It Should fix the problem.
In my case i have to apply tick to hidden icons in also sub folders of C:\Users\HP and again apply tick to show hidden icons.Now works fine
My Android Studio was not opening and throwing the same error as above.
I went and deleted the below folder -
.AndroidStudio3.5
(It should be in C:/users/[insert current user]/.androidstudio3.5
)
Delete the whole folder and try running the studio again.