Android Studio 无法构建新项目,等待从属 aapt 进程时超时 [英] Android Studio fails to build new project, timed out while wating for slave aapt process

查看:33
本文介绍了Android Studio 无法构建新项目,等待从属 aapt 进程时超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 Android Studio 1.2,并创建了一个新项目.当我尝试构建时,它挂起.这是在 Gradle 控制台中,还有大约 20 个其他副本,在 png-cruncher_ 之后有不同的数字:

I've installed Android Studio 1.2, and created a new project. When I attempt to build, it hangs. This is in the Gradle Console, along with about 20 other copies, with different numbers after png-cruncher_:

Exception in thread "png-cruncher_2" java.lang.RuntimeException: Timed out while waiting for slave aapt process, try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 5 seconds
at com.android.builder.png.AaptProcess.waitForReady(AaptProcess.java:104)
at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:107)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:204)
at java.lang.Thread.run(Thread.java:745)

推荐答案

我在使用 AMD64 的 Debian Jessie 时遇到了同样的问题.我这样做了,并且有效:

I had the same problem with Debian Jessie for AMD64. I did this, and it works:

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

这篇关于Android Studio 无法构建新项目,等待从属 aapt 进程时超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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