• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

dx and external jars

abhay_bc

Newbie
Hi
I have few external jars ( one of them is very big .. @1.5MB) and android build - using eclipse ADT as well as using command line ANT - both are failing.

I am getting "stack overflow" error. I tried setting the Xss value in dx.bat as a java option, but either it is not working or is not enough ! I tried setting it to 1M and eventually to 100M, but it still fails with this error -

Code:
-post-compile:

-obfuscate:

-dex:
     [echo] Converting compiled files and external libraries into D:\eclipse\Workspace\myts\bin\classes.dex...
    [apply]
    [apply] UNEXPECTED TOP-LEVEL ERROR:
    [apply] java.lang.StackOverflowError
    [apply]     at com.android.dx.cf.code.Ropper.access$400(Ropper.java:38)
    [apply]     at com.android.dx.cf.code.Ropper$1.visitBlock(Ropper.java:1253)
    [apply]     at com.android.dx.cf.code.Ropper.forEachNonSubBlockDepthFirst0(Ropper.java:1647)
    [apply]     at com.android.dx.cf.code.Ropper.forEachNonSubBlockDepthFirst0(Ropper.java:1671)

So need help on couple of questions -
1. Is there any way other than compiling these external jars everytime I do a build ( like just add pre-compiled jars ) since they are not changing anyway
2. If no, then what do i need to do to get past this error ?

Need some quick help !! THANKS !!!!

-abhay
 
Back
Top Bottom