当项目构建失败时,Android Studio 挂起/冻结 [英] Android Studio hangs / Freezes when project build fails

查看:32
本文介绍了当项目构建失败时,Android Studio 挂起/冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从今晚开始,我遇到了一个非常棘手的问题.

I am experiencing a very wired problem since this evening.

如果我的 android 项目有任何错误,并且构建失败,那么我的 Android 工作室就会被冻结/卡住.我只能杀死 Android Studio 应用程序.即使我下次打开同一个项目,gradle 也会尝试构建并再次冻结.[请找到附件截图]

If I have any errors in my android project, and build is failed, then my Android studio gets frozen / stuck. I cant do anything but kill the Android studio application. Even if I open the same project next time, gradle will try to build and freezes again. [Please find attached screen shot]

我能找到的唯一解决方案是......我必须找出导致构建失败"的确切原因,我必须使用其他编辑器解决该问题,然后我的 android studio 将开始工作.

Only solution I could find is .... I have to find what exactly cause the "build fail" and I will have to resolve the issue using some other editor, and then my android studio will start working.

事情是它一直工作到今天晚上没有任何问题;并突然崩溃.还有人遇到同样的问题吗??

Thing is it was working without any issues till this evening; and suddenly broken down. Any one else having the same issue ??

-n

推荐答案

嗯,我把android studio卸载了重新安装,现在问题解决了.我仍然想知道它最初是如何破裂的.

Well, I uninstalled android studio and installed it again, and now the problem has gone away. I still wonder how in the world it broke in the first place.

如果其他人遇到同样的问题,请尝试重新安装您的工作室.如果您使用的是 Mac osx,请参阅如何完全卸载 Android Studio?正确卸载Android studio;因为只删除App并不会完全卸载.

In case some one else is facing the same issue, try reinstalling your studio. In case if you are using Mac osx refer How to completely uninstall Android Studio? to uninstall Android studio properly; Because only deleting App will not completely uninstall it.

这篇关于当项目构建失败时,Android Studio 挂起/冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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