java.lang.OutOfMemoryError: Java heap space编译Android项目时如何解决?
升级到Android Studio的第1版后,我得到了这个.但是,我不认为这是问题所在.最有可能的是,当我开始将我的应用程序升级到SDK 21时(之前是SDK 20).但我也不太确定.
我已经google了一些 修复,但找不到一个有效.大部分修复都适用于Eclipse IDE.
这是我在编译时得到的完整logcat错误:
warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.lingala.zip4j.unzip.Unzip$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective …Run Code Online (Sandbox Code Playgroud)