Android Studio 3.0-无服务器可提供请求 [英] Android Studio 3.0 - No server to serve request

查看:177
本文介绍了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).解决方案是仅将glibc安装在Docker容器中.

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天全站免登陆