Android Studio can't open (port.lock access denied)

前端 未结 5 1457
Happy的楠姐
Happy的楠姐 2021-01-15 15:17

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         


        
相关标签:
5条回答
  • 2021-01-15 16:06

    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.

    0 讨论(0)
  • 2021-01-15 16:08

    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.

    0 讨论(0)
  • 2021-01-15 16:09

    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.

    0 讨论(0)
  • 2021-01-15 16:17

    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

    0 讨论(0)
  • 2021-01-15 16:23

    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.

    0 讨论(0)
提交回复
热议问题