版權聲明:轉載請附上文章地址https://blog.csdn.net/qq_42672839
IDEA無法正常啟動(兩種問題)
目錄
第一種是緩存問題 雙擊Idea打開,無任何反應,資源管理器中有Idea的進程。
第二種報錯(報錯: cannot lock system foiders)
兩種常見的情況
第一種是緩存問題
雙擊Idea打開,無任何反應,資源管理器中有Idea的進程。
預估原因:
系統非正常關閉有關,導致idea的緩存和索引文件出現錯誤。
解決方案:
手動刪除idea的緩存與索引文件
找到如下文件夾中的 caches 和 index 文件夾並刪除 ,重新啟動即可
注意路徑:
我的:C:\Users\Administrator\.IntelliJIdea2019.3\system
通用:C:\Users\ {用戶名} \.IntelliJIdea2019.3\system (版本號是你安裝的版本)
第二種報錯(報錯: cannot lock system foiders)
今天在清理電腦后遇到一個問題,雙擊IDEA圖標無法啟動給出了一長串的錯誤。
報錯: cannot lock system foiders
錯誤信息如下:
Internal Error. Please report to https://https://code.google.com/p/android/issuesjava.lang.IllegalStateException: failed to create a child event loopat io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:81)at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:48)at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:57)at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:67)at io.netty.channel.nio.NioEventLoopGroup.<init>(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:57)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:606)at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:91)at java.lang.Thread.run(Thread.java:744)Caused by: io.netty.channel.ChannelException: failed to open a new selectorat io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:127)at io.netty.channel.nio.NioEventLoop.<init>(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.<init>(MultithreadEventExecutorGroup.java:77)... 18 moreCaused by: java.io.IOException: Unable to establish loopback connectionat sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:125)at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:69)at java.security.AccessController.doPrivileged(Native Method)at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:141)at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)at java.nio.channels.Pipe.open(Pipe.java:150)at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:127)at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:125)... 22 moreCaused by: java.net.SocketException: Unrecognized Windows Sockets error: 87: socketat sun.nio.ch.Net.socket0(Native Method)at sun.nio.ch.Net.serverSocket(Net.java:427)at sun.nio.ch.ServerSocketChannelImpl.<init>(ServerSocketChannelImpl.java:88)at sun.nio.ch.SelectorProviderImpl.openServerSocketChannel(SelectorProviderImpl.java:56)at java.nio.channels.ServerSocketChannel.open(ServerSocketChannel.java:105)at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:90)... 30 more
原因:具體原因沒有深入了解,預估原因是機器上的Winsock協議配置有問題的話導致網絡連接等問題。需要用netsh winsock reset命令來重置Winsock文件夾借以恢復網絡。
解決方案:
打開命令提示符(管理員),輸入netsh winsock reset,返回已成功等字樣
重啟計算機
雙擊IDEA打開,正常運行。
————————————————
版權聲明:本文為CSDN博主「DJyzh」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/qq_42672839/article/details/81584403