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

前端 未结 5 1458
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: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.

提交回复
热议问题