Android Question Compile Error on version 2.71

Discussion in 'Android Questions' started by redbeardrob, Feb 28, 2015.

  1. redbeardrob

    redbeardrob New Member Licensed User

    How do you fix heap space errors in version 2.71 running on Windows 7 Pro?
    I cannot locate the "ini" file discussed in previous threads to edit the dexer. I have already increased the allotted memory for Java itself.

    B4a will only switch to the Standard dexer one out of 100 times, which has stalled progress completely on my project:

    Compile Error log below:

    Parsing code. 2.68
    Compiling code. 2.33
    Compiling layouts code. 0.00
    Generating R file. 0.99
    Compiling generated Java code. 3.22
    Convert byte code - optimized dex. Error
    UNEXPECTED TOP-LEVEL ERROR:
    java.lang.OutOfMemoryError: Java heap space
    at com.android.dx.util.IntList.<init>(IntList.java:87)
    at com.android.dx.util.IntList.mutableCopy(IntList.java:345)
    at com.android.dx.util.LabeledList.<init>(LabeledList.java:45)
    at com.android.dx.rop.code.BasicBlockList.<init>(BasicBlockList.java:53)
    at com.android.dx.rop.code.BasicBlockList.getMutableCopy(BasicBlockList.java:216)
    at com.android.dx.ssa.back.IdenticalBlockCombiner.<init>(IdenticalBlockCombiner.java:50)
    at com.android.dx.ssa.back.SsaToRop.convert(SsaToRop.java:126)
    at com.android.dx.ssa.back.SsaToRop.convertToRopMethod(SsaToRop.java:70)
    at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:102)
    at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:73)
    at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:273)
    at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:134)
    at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:87)
    at com.android.dx.command.dexer.Main.processClass(Main.java:487)
    at com.android.dx.command.dexer.Main.processFileBytes(Main.java:459)
    at com.android.dx.command.dexer.Main.access$400(Main.java:67)
    at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:398)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:135)
    at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:191)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:123)
    at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:191)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:123)
    at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:191)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:123)
    at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
    at com.android.dx.command.dexer.Main.processOne(Main.java:422)
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:333)
    at com.android.dx.command.dexer.Main.run(Main.java:209)
    at com.android.dx.command.dexer.Main.main(Main.java:174)
    at com.android.dx.command.Main.main(Main.java:91)
    Optimized dexer failed. Switching to Standard dexer.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    redbeardrob likes this.
  3. redbeardrob

    redbeardrob New Member Licensed User

    THANK YOU SO MUCH!!!
    That link pointed me to manually typing the file path in the browser to find the file, which was the step that had kept the ini file hidden from me.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice