Android Studio 3.0 - 没有服务器来处理请求 [英] Android Studio 3.0 - No server to serve request

查看:51
本文介绍了Android Studio 3.0 - 没有服务器来处理请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全新安装 Android Studio 后,我总是收到错误

After clean install of Android Studio I always get the error

错误:java.util.concurrent.ExecutionException:java.lang.RuntimeException: 没有服务器来处理请求.检查日志详情.

Error:java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.

错误:任务:Application:mergeDebugResources"的执行失败.错误:java.util.concurrent.ExecutionException:java.lang.RuntimeException:没有服务器可以为请求提供服务.查看日志以了解详细信息.

Error:Execution failed for task ':Application:mergeDebugResources'. Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.

Java 是最新的并且路径已设置.

Java is up to date and the path is set.

我是 Android Studio 的新手,我应该尝试什么?

I am new to Android Studio, what should I try?

推荐答案

我们遇到了同样的问题,并且已经找到了根本原因:错误消息意味着 Gradle 无法连接到某些工作进程.在我们的例子中,这个过程是针对aapt2"的.运行 'ldd aapt2' 表示缺少一些共享库(主要是 GLIBC).由于我们使用基于 Alpine Linux 的 Docker,它带有减少的 GLIBC (glibc-musl).解决方案是在 Docker 容器中简单地安装 glibc.

We ran into the same issue, and have been able to find the root cause: The error message means that Gradle cannot connect to some worker processes. In our case, the process was for 'aapt2'. Running 'ldd aapt2' indicated that some shared libraries were missing (mainly GLIBC). Since we're using Docker based on Alpine Linux, it comes with a reduced GLIBC (glibc-musl). The solution was to simply install glibc in the Docker container.

我建议你运行 ldd build-tools/{version}/aapt2查看操作系统中缺少哪些库.你没有提到你的操作系统,你也在使用Docker和AlpineLinux吗?

I suggest you run ldd build-tools/{version}/aapt2 to see which libraries are missing from the OS. You did not mention your OS, are you also using Docker and AlpineLinux ?

这篇关于Android Studio 3.0 - 没有服务器来处理请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆