2016-04-29 65 views
2

Android Studio中没有开始,没有创建一个子事件循环,无法锁定系统文件夹Android Studio中没有开始,没有创建一个子事件循环,无法锁定系统文件夹

java.lang.IllegalStateException: failed to create a child event loop at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:81) at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:48) at io.netty.channel.MultithreadEventLoopGroup.(MultithreadEventLoopGroup.java:57) at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:67) at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:54) at org.jetbrains.io.BuiltInServer.start(BuiltInServer.java:79) at com.intellij.idea.SocketLock$2.call(SocketLock.java:133) at com.intellij.idea.SocketLock$2.call(SocketLock.java:113) at com.intellij.idea.SocketLock.underLocks(SocketLock.java:157) at com.intellij.idea.SocketLock.lock(SocketLock.java:113) at com.intellij.idea.StartupUtil.lockSystemFolders(StartupUtil.java:263) at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:101) 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:91) at java.lang.Thread.run(Thread.java:745) Caused by: io.netty.channel.ChannelException: failed to open a new selector at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:127) at io.netty.channel.nio.NioEventLoop.(NioEventLoop.java:119) at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:97) at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:31) at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:77) ... 18 more Caused by: java.io.IOException: Unable to establish loopback connection at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:101) at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:68) at java.security.AccessController.doPrivileged(Native Method) at sun.nio.ch.PipeImpl.(PipeImpl.java:170) at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50) at java.nio.channels.Pipe.open(Pipe.java:155) at sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:127) at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44) at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:125) ... 22 more Caused by: java.net.ConnectException: Connection timed out: connect at sun.nio.ch.Net.connect0(Native Method) at sun.nio.ch.Net.connect(Net.java:454) at sun.nio.ch.Net.connect(Net.java:446) at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)

+1

多小时后搜索终于找到了解决方案 试试这个, 1)打开CMD与以管理员身份运行 2)键入:netsh winsock的重置 3)重新启动计算机 后重新开放的Android Studio中没有错误对话框显示我,成功打开。 – Chandrahasan

+0

我收到了同样的错误。我已经尝试了上述解决方案以及我可能在互联网上找到的所有其他解决方案,但仍然无法解决问题。你能帮我吗 ? – prateek

+0

你可以发送这些细节,哪些操作系统,64/32位,Windows家庭/专业。这将有助于发现问题 – Chandrahasan

回答

0

最好的和简单的解决方案:

  1. 卸载Android Studio
  2. 重新启动计算机后再次安装。

我有同样的问题,它解决了。

+1

谢谢你救了我.. – Amit