我无法在 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进程超时