在 Android Studio (Gradle project sync
)中运行java 8.0.181
时,我得到:
java.net.BindException: Address already in use: bind
但是我找不到哪个地址(我假设地址确实是port
)(因为未列出地址),所以我可以在那里终止进程并重试gradle构建。
我只能在TCPView
中看到Android Studio进程/端口,而看不到Gradle的任何特定内容。
In the Android Studio terminal I have run gradlew --stacktrace:
20:51:56.188 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Please read the following process output to find out more:
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] -----------------------
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.bootstrap.DaemonGreeter.parseDaemonOutput(DaemonGreeter.java:34)
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startProcess(DefaultDaemonStarter.java:151)
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startDaemon(DefaultDaemonStarter.java:134)
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.client.DefaultDaemonConnector.startDaemon(DefaultDaemonConnector.java:20
5)
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect(DefaultDaemonConnector.java:127)
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:138)
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:92)
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173)
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFacto
ry.java:287)
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFacto
ry.java:260)
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:33)
20:51:56.192 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
20:51:56.196 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
20:51:56.196 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
20:51:56.200 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:
253)
20:51:56.200 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:
182)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:33)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.lang.reflect.Method.invoke(Unknown Source)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at java.lang.reflect.Method.invoke(Unknown Source)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
20:51:56.204 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
20:51:56.208 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
20:51:56.208 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
我已经在线检查了所有修复程序,但没有找到解决方案!