在通过Android Studio 1.5构建我的应用程序时,编译器会抛出系统资源不足的消息。我不明白为什么它会抛出错误,而它可以为其他应用程序构建。
我的机器上有8 gb内存的ubuntu14。因此,记忆不会成为问题。我也尝试改变工作室的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天就陷入了困境。 在此先感谢!!