gradle build running很久并出现"png-cruncher_19" java.lang.RuntimeException
2016-10-18 23:43
471 查看
刚开始androidstudio构建时一直卡在那里gradle build running很久,一晚上都没成功,后来通gradle控制台过发现下面的错误信息:
从日志中看(try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 5 seconds),表示SLAVE_AAPT_TIMEOUT 的值需要大于5,于是增加系统环境变量(SLAVE_AAPT_TIMEOUT)并设置为30,再次编译就ok啦。
Exception in thread "png-cruncher_19" java.lang.RuntimeException: Timed out while waiting for slave aapt process, make sure the aapt execute at E:\tools\adt\sdk\build-tools\android-7.0\aapt.exe can run successfully (some anti-virus may block it) or try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 5 seconds at com.android.builder.png.AaptProcess.waitForReady(AaptProcess.java:108) at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:120) at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203) at java.lang.Thread.run(Thread.java:745)
从日志中看(try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 5 seconds),表示SLAVE_AAPT_TIMEOUT 的值需要大于5,于是增加系统环境变量(SLAVE_AAPT_TIMEOUT)并设置为30,再次编译就ok啦。
相关文章推荐
- Exception in thread "png-cruncher_2" java.lang.RuntimeException: Timed out while waiting for slave a
- Ubuntu下gradle运行卡住,出现Exception in thread "png-cruncher_2"错误的解决办法
- Ubuntu下gradle运行卡住,出现Exception in thread "png-cruncher_xxx"错误的解决办法
- ReactNative问题随记1 Exception in thread "main" java.lang.RuntimeException: gradle-2.14.1-all.zip
- Drools 运行时出现Exception in thread "main" java.lang.RuntimeException: wrong class format 的问题
- 启动JBoss出现“java.lang.RuntimeException: java.lang.reflect.InvocationTargetException”解决
- 在dos中运行java程序,出现Exception in thread "main" java.lang.NoClassDefFoundError的原因
- 关于Android使用HttpClient中出现的"java.lang.NoClassDefFoundError"
- MyEclipse 8.6 出现"Caused by: java.lang.OutOfMemoryError: PermGen space"解决
- 在Eclipse中测试Main函数运行出现Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:0
- Hadoop运行class类出现Exception in thread "main" java.lang.NoClassDefFoundError:*
- eclipse出现Exception in thread "main" java.lang.NoClassDefFoundError
- java使用Iterator迭代出现"java.uitl.ConcurrentModificationException"错误原因及解决方法概述
- Dos下在运行JAVA出现Exception in thread "main" java.lang.NoClassDefFoundError:的解决
- 关于lucene的demo运行时出现Exception in thread "main" java.lang.NoClassDefFoundError错误
- Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/jobs/Job
- hibernate中出现Exception in thread "main" java.lang.NoClassDefFoundError: com/opensymphony/oscache/base
- "java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils"的解决办法
- 关于java的Graphics出现“Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet.”
- Exception in thread "main" java.lang.RuntimeException: Stub!