在通過Android Studio 1.5構建我的應用程序時,編譯器會拋出系統資源不足的消息。我不明白爲什麼它拋出錯誤,而它爲其他應用程序構建良好。「系統資源不足。」 - Android Studio構建過程
我的機器上裝有8 GB的ram的ubuntu14。因此,內存是不會成爲issue.I也試圖改變工作室的vmoptions:
-Xms256m
-Xmx4096m
-Xss1024k
-XX:MaxPermSize參數=1024米
也許問題出在java(jvm)。以下是編譯器拋出的堆棧跟蹤:
The system is out of resources.
Consult the following stack trace for details.
java.lang.StackOverflowError
at com.sun.tools.javac.comp.Check.checkType(Check.java:533)
at com.sun.tools.javac.comp.Attr$ResultInfo.check(Attr.java:476)
at com.sun.tools.javac.comp.Attr.check(Attr.java:275)
at com.sun.tools.javac.comp.Attr.visitLiteral(Attr.java:3859)
at com.sun.tools.javac.tree.JCTree$JCLiteral.accept(JCTree.java:2037)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:664)
at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3226)
at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1815)
at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3226)
有沒有人遇到過這種問題?請幫助! 我從近2天就陷入了這個問題。 在此先感謝!
大家好,請提出你對這個問題的建議。謝謝 – DeepThinker