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