摇篮被采用Android工作室的64位或32位版本时,停留在任一'构建'或'assembleDebug“ [英] Gradle gets stuck at either 'build' or 'assembleDebug' when using the 64bit or 32bit version of Android Studio

查看:143
本文介绍了摇篮被采用Android工作室的64位或32位版本时,停留在任一'构建'或'assembleDebug“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经经历了过去几个月的问题是,Android的工作室往往会陷在摇篮:打造,看到的here 的。 Android的工作室本身将保持响应,但在构建根本就不会进步。它也从来没有产生任何类型的错误,所以我真的不能发布任何有用的信息。一次在一个蓝色的月亮它会突然工作,但没有可靠的。

The issue I've had over the past few months is that Android Studio would often get stuck on Gradle: build, as seen here. Android Studio itself would stay responsive but the build simply wouldn't progress. It also never generates any kind of error, so I can't really post any useful information. Once in a blue moon it might suddenly work, but nothing reliable.

最近我发现了张贴在这里对堆栈溢出如果有人的Andr​​oid工作室将卡住的摇篮:打造当他试图创建一个新项目,他注意到,这在32位版本的Andr​​oid系统不存在问题。所以我想,为什么不尝试。原来,建筑是不是一个问题了,但 assembleDebug 是,试图建立应用程序时。由于可以在这里看到

Recently I found a post here on Stack Overflow where someone's Android Studio would get stuck on Gradle: build when he tried to create a new project, and he noticed that this issue didn't exist in the 32-bit version of Android. So I thought, why not try that. Turns out that building isn't an issue anymore, but assembleDebug is, when trying to build the application. As can be seen here.

当然,所有这些命令工作得很好使用命令提示符,gradlew运行时。

Of course all these commands work flawlessly when run using command prompt and gradlew.

我试过到目前为止:

  • 在重新安装Android的工作室(包括取消.AndroidStudioProject的)
  • 在升级Android的工作室到最新版本
  • 从项目中删除任何构建文件
  • 在Android的Studio中创建全新的项目
  • 从64位切换到32位的Andr​​oid工作室

我在Windows 8.1运行Android工作室的最新版本,使用的构建工具19.1.0版本,摇篮v0.11 +和上午。

I'm running the latest version of Android Studio, using version 19.1.0 of the build tools, gradle v0.11+ and am on Windows 8.1.

还有什么我可以试试吗?这已经开始成为严重地困扰。最后一个可能的解决方案,我能想出只是做一个完整的格式和新的Windows安装。

Is there anything else I can try? This is starting to become seriously annoying. The last possible solution I can come up with is just doing a complete format and a fresh Windows installation.

推荐答案

我遇到同样的问题,而解决方案是很意外的在我的情况: avast!杀毒在某种程度上与摇篮干扰:构建过程。 停用该防病毒解决了这个问题!

I was experiencing the same problem, and the solution was very unexpected in my case: AVAST antivirus was somehow interfering with the Gradle:build process. Deactivating this antivirus solved the problem!

这篇关于摇篮被采用Android工作室的64位或32位版本时,停留在任一'构建'或'assembleDebug“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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