参考 : https://stackoverflow.com/questions/40521069/android-studio-cant-open-port-lock-access-denied/40646466#40646466贴出一些解决方案 : In my case.I have deleted port.lock file uinder C:\Users\...\.AndroidStudio2.2\config\ and this solved the issue, the file was just recreated on studio launch 删除 config 下 所有文件 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 删除 gradle 缓存
你Windows的用户不是Administration,试试右击安装文件,使用管理员运行。
或者直接把Administration账户开起来,直接用这个账户安装试试。
删除 config 下 所有文件 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
删除 gradle 缓存