我无法在 Ubuntu 上的 Android Studio 中构建项目.Gradle 运行构建需要无穷大 [英] I can't build project in Android Studio on Ubuntu. Gradle running build takes infinity

查看:24
本文介绍了我无法在 Ubuntu 上的 Android Studio 中构建项目.Gradle 运行构建需要无穷大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有最新的 Ubuntu (15.04) 发行版.我已经安装了最新的 Java(1.8 和带有 SDK 的 Android Studio,但是当我想构建项目时,它正在构建正在运行的应用程序并且它需要无限时间.(它一直在构建而没有任何错误).即使我想停止构建,然后停止gradle建设需要无穷大.有没有人有类似的问题?

I have the newest distribution of Ubuntu(15.04). I have installed the newest Java(1.8 and Android Studio with SDK, but when i want to build project it's building running application and it takes infinity time.(It building all time without any error).Even if I want to stop building, then stopping gradle building takes infinity. Does anyone have a similar problem?

推荐答案

我遇到了同样的问题,最后我通过终端中的这三个命令解决了这个问题:

I had identical problem and finally I solved this by those three commands in Terminal:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386

我在这里发现:Android Studio 无法新建项目,等待从属aapt进程超时

这篇关于我无法在 Ubuntu 上的 Android Studio 中构建项目.Gradle 运行构建需要无穷大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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