isuru isuru - 18 days ago 16
Java Question

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

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)


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)

Answer

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

Comments