Android Studio 无法打开(port.lock access denied) [英] Android Studio can't open (port.lock access denied)
本文介绍了Android Studio 无法打开(port.lock access denied)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我打开 Android Studio 时出现以下错误:
When I open the Android Studio it gives the following error:
java.io.FileNotFoundException: C:\Users\HP\.AndroidStudio2.2\config\port.lock (Access is denied)
javac 路径正确并且该文件任何人都可以访问(port.lock)
The javac path is correct and the file has anyone can access (port.lock)
这是我收到的完整错误消息:
This is the full error message which I was getting:
java.io.FileNotFoundException: C:\Users\HP\.AndroidStudio2.2\config\port.lock (Access is denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at com.intellij.idea.SocketLock.underLocks(SocketLock.java:186)
at com.intellij.idea.SocketLock.lock(SocketLock.java:128)
at com.intellij.idea.StartupUtil.lockSystemFolders(StartupUtil.java:318)
at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:140)
at com.intellij.idea.MainImpl.start(MainImpl.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:93)
at java.lang.Thread.run(Thread.java:745)
推荐答案
在我的情况下,我必须对 C:\Users\HP 的子文件夹中的隐藏图标应用勾选,然后再次应用勾选以显示隐藏的图标.现在可以使用很好
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
这篇关于Android Studio 无法打开(port.lock access denied)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文