This copyright belongs to the author all, any person, the media or the website reprint, borrows must obtain the author's own consent!
Ant Java Project, performing a stackoverflowerror error to the Proguard phase, the error resembles the following:
Build.xml:339:java.lang.stackoverflowerrorat Proguard.classfile.ProgramClass.constantPoolEntryAccept ( programclass.java:465) at Proguard.shrink.UsageMarker.markConstant (usagemarker.java:1079) at Proguard.shrink.UsageMarker.visitClassConstant (usagemarker.java:499) at Proguard.shrink.ShortestUsageMarker.visitClassConstant (shortestusagemarker.java:36) at Proguard.classfile.constant.ClassConstant.accept (classconstant.java:91)
Before you execute ant xxx, you may want to set the environment variable opt_ants should be able to solve this problem:
Export ant_opts= '-xms1024m-xmx1024m-xss64m '
You can add this setting to the. BASHRC inside.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Ant release Proguard Stackoverflowerror