Android Studio Gradle构建错误:读取超时 [英] Android Studio Gradle Build Error: Read Time Out

查看:255
本文介绍了Android Studio Gradle构建错误:读取超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 10笔记本电脑上安装了最新的Android Studio IDE,并且在我的Windows操作系统进行了大量自动更新之前,它一直运行良好.

I have the latest Android Studio IDE installed on my Windows 10 laptop, and it was working fine until my windows operating system made a huge automatic update.

现在,当启动我的Android Studio IDE时,出现以下错误,并且无法生成.

Now, when start my Android Studio IDE, I get the following error and it doesn't build.

Gradle同步失败:读取超时有关更多详细信息,请查阅IDE日志 (帮助|显示日志)(3m 34s 195ms)

Gradle sync failed: Read timed out Consult IDE log for more details (Help | Show Log) (3m 34s 195ms)

在这方面我需要帮助.

推荐答案

我遇到此错误读取超时",我只选择菜单项:文件-> 使缓存无效/重新启动... 对其进行修复.

I encounter this error "Read Time Out", and I simply choose menu item: File -> Invalidate Caches / Restart... to fixed it.

[UPDATE]

我只是第二次遇到此错误,这一次 Invalidate Caches/Restart ... 无法修复它,但是随后我尝试关闭android Studio killall -9 java以确保所有Java进程已终止,然后重新启动Android Studio,没有更多错误.

I just encounter this error for second time, this time Invalidate Caches / Restart... not able to fix it, but then I try close the android Studio, killall -9 java to ensure all java process has been terminated, then relaunch Android Studio, no more error.

[UPDATE 2] 我只是遇到此错误,所以我通过重新插入电话线并重新运行来解决了该问题.

[UPDATE 2] I just encounter this error and I fixed it by replug the phone cable and rerun.

这篇关于Android Studio Gradle构建错误:读取超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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