1. Download our Official Android App: Forums for Android!

dx and external jars

Discussion in 'Android Apps & Games' started by abhay_bc, Jun 7, 2011.

  1. abhay_bc

    abhay_bc Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    12
    Joined:
    Jun 6, 2011

    Jun 6, 2011
    12
    0
    15
    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 (Text):
    1. -post-compile:
    2.  
    3. -obfuscate:
    4.  
    5. -dex:
    6.      [echo] Converting compiled files and external libraries into D:\eclipse\Workspace\myts\bin\classes.dex...
    7.     [apply]
    8.     [apply] UNEXPECTED TOP-LEVEL ERROR:
    9.     [apply] java.lang.StackOverflowError
    10.     [apply]     at com.android.dx.cf.code.Ropper.access$400(Ropper.java:38)
    11.     [apply]     at com.android.dx.cf.code.Ropper$1.visitBlock(Ropper.java:1253)
    12.     [apply]     at com.android.dx.cf.code.Ropper.forEachNonSubBlockDepthFirst0(Ropper.java:1647)
    13.     [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
     

    Advertisement

  2. abhay_bc

    abhay_bc Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    12
    Joined:
    Jun 6, 2011

    Jun 6, 2011
    12
    0
    15
    Any one ?
     

Share This Page

Loading...