2016-04-29 64 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