我安装了Android Studio 1.2,并创建了一个新项目.当我尝试构建时,它会挂起.这是在Gradle控制台中,以及大约20个其他副本,在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)
Run Code Online (Sandbox Code Playgroud) 我已经使用Android Studio 2.1一段时间了,在我之前的项目中,它似乎工作得很好.但现在我收到了这个错误:

这困扰了我一段时间,直到我决定谷歌解决方案,并最终得到一些信息细节,如如何增加堆大小,这似乎适用于OP.
我还没有成功.
我studio64.vmoptions直接对文件进行了调整(尽管AS明确建议不然,但我很绝望)
我注意到在集成Google Places API之后发生了一段时间后出现问题,但我无法在两者之间建立连接.
有什么建议?我真的可以使用一些帮助,我积压的工作正在起来:(
这就是我的vmoptions的样子:
# custom Android Studio VM options
#
# *DO NOT* modify this file directly. If there is a value that you would like to override,
# please add it to your user specific configuration file.
#
# See http://tools.android.com/tech-docs/configuration
#
-Xms512m
-Xmx2048m
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-da
-Djna.nosys=true
-Djna.boot.library.path=
-Djna.debug_load=true
-Djna.debug_load.jna=true
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-Dawt.useSystemAAFontSettings=lcdRun Code Online (Sandbox Code Playgroud)
更多信息:我在Linux操作系统上.