編譯過程中出現如下錯誤
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':referencePdf'.
> Java heap space
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2 mins 0.683 secs
看下錯誤日誌,發現需要調整 gradlew.bat文件中的 MaxHeapSize 的大小
set GRADLE_OPTS=-XX:MaxPermSize=512m -Xmx512m -XX:MaxHeapSize=512m %GRADLE_OPTS%
原文地址:http://306963591.iteye.com/blog/1677405