Windows Android Studio 无法启动(Internal error. Please refer to https://code.google.com/p/android/issue)

环境

  • win10
  • AS 4.2

错误截图

Windows Android Studio 无法启动(Internal error. Please refer to https://code.google.com/p/android/issue)_第1张图片

Internal error. Please refer to https://code.google.com/p/android/issues

java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind
    at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
    at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.BindException: Address already in use: bind
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:220)
    at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
    at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:550)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334)
    at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506)
    at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491)
    at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973)
    at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:248)
    at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    ... 1 more

-----
JRE 1.8.0_242-release-1644-b01 amd64 by JetBrains s.r.o
D:\soft\Android_Studio\jre\jre

搜索结果

  • https://my.oschina.net/u/4377109/blog/4674369

解决过程

  • 查看提到目录C:\Users\{user}\AppData\Roaming\Google\AndroidStudio4.1\plugins
  • 发现存在两个不同的版本
    Windows Android Studio 无法启动(Internal error. Please refer to https://code.google.com/p/android/issue)_第2张图片
  • 尝试备份比较低的版本4.1,并删除
  • 问题并没有解决,且再次生成了对应的4.1结果,参考搜索到的结果,删除plugins 下面的文件。
  • 依然没有解决
    Windows Android Studio 无法启动(Internal error. Please refer to https://code.google.com/p/android/issue)_第3张图片
  • 尝试备份,删除4.2下面的plugins的文件。
  • 依旧没有解决
    Windows Android Studio 无法启动(Internal error. Please refer to https://code.google.com/p/android/issue)_第4张图片
  • 恢复原来的文件。
  • 找到AS软件安装的目录,查看是否是AS自带的插件造成的问题。
  • 先备份,再删除,启动AS
  • 结果如下Windows Android Studio 无法启动(Internal error. Please refer to https://code.google.com/p/android/issue)_第5张图片
  • 我有50个插件文件,先复制前25个看看。
    Windows Android Studio 无法启动(Internal error. Please refer to https://code.google.com/p/android/issue)_第6张图片
  • 看来需要一些必须的文件.把java相关的插件复制到里面。
    Windows Android Studio 无法启动(Internal error. Please refer to https://code.google.com/p/android/issue)_第7张图片
  • 再根据提示,把相关的插件给复制进去。(没找到对应的这个插件)
  • 继续尝试,将剩下的全部,移入,发现还是报刚开始的错误,所以,找到排除到对用的插件,然后,删除掉。
  • 但是还是缺少插件org.jetbrains.android 搜索问题
  • 但是本地找不到对应的disabled_plugins.txt
  • 还是回退回去这个问题,在stackoverflow上查找

最后,向现实低头,重装大法。

  • 然而,还是启动不了。
  • 下载最新的版本
Internal error. Please refer to https://code.google.com/p/android/issues

java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
    at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.net.BindException: Address already in use: bind
    at java.base/sun.nio.ch.Net.bind0(Native Method)
    at java.base/sun.nio.ch.Net.bind(Net.java:455)
    at java.base/sun.nio.ch.Net.bind(Net.java:447)
    at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
    at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
    at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:550)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334)
    at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506)
    at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491)
    at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973)
    at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:248)
    at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    ... 1 more

-----
Your JRE: 11.0.10+0-b96-7249189 amd64 (Oracle Corporation)
D:\soft\Android_studio\jre
  • 更换Android Studio RC 版本解决

other

  • 此次是由于win10 系统更新,导致应用软件无法使用,推荐关闭win10自动更新。

你可能感兴趣的:(tools,windows,android,studio)