Android Question optimizer dex error

fifiddu70

Well-Known Member
Licensed User
Longtime User
hello, i have a this error after install new admob code.

(ClassPathOpener.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:596)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)
Optimized dexer failed. Switching to Standard dexer.

i have added correctly in the admob codes this project is maked in old version of b4a, now i have new version of b4a 3.80.
why have this error?
 

fifiddu70

Well-Known Member
Licensed User
Longtime User
i try to launch a old version of this app with old admob, the problems is present, for me is the last version of b4a installed in my pc. = 3.80
 
Upvote 0

fifiddu70

Well-Known Member
Licensed User
Longtime User
erel helpme, this is the complete error:


B4X:
Parsing code.                          0.30
Compiling code.                        0.51
  
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.                0.02
Generating R file.                      0.27
Compiling generated Java code.          0.98
Convert byte code - optimized dex.      Error
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
    at java.util.BitSet.initWords(BitSet.java:164)
    at java.util.BitSet.<init>(BitSet.java:159)
    at com.android.dx.ssa.SsaBasicBlock.<init>(SsaBasicBlock.java:128)
    at com.android.dx.ssa.SsaBasicBlock.newFromRop(SsaBasicBlock.java:147)
    at com.android.dx.ssa.SsaMethod.convertRopToSsaBlocks(SsaMethod.java:173)
    at com.android.dx.ssa.SsaMethod.newFromRopMethod(SsaMethod.java:103)
    at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:44)
    at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:98)
    at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72)
    at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:299)
    at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:139)
    at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:94)
    at com.android.dx.command.dexer.Main.processClass(Main.java:682)
    at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
    at com.android.dx.command.dexer.Main.access$600(Main.java:78)
    at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:170)
    at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
    at com.android.dx.command.dexer.Main.processOne(Main.java:596)
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
    at com.android.dx.command.dexer.Main.run(Main.java:230)
    at com.android.dx.command.dexer.Main.main(Main.java:199)
    at com.android.dx.command.Main.main(Main.java:103)
    Optimized dexer failed. Switching to Standard dexer.
 
Upvote 0

fifiddu70

Well-Known Member
Licensed User
Longtime User
hello, sorry to say now after a long time, I had surgery for a herniated disc and was stopped for a month, I tried to increase max ram for dex: from 512 to 1536, but the problem still remains, what can I do?
 
Upvote 0

padvou

Active Member
Licensed User
Longtime User
I 've also noticed that if the computer is heavily active on other tasks, optimized dexer also fails sometimes.
 
Upvote 0

fifiddu70

Well-Known Member
Licensed User
Longtime User
i have this pc: asus g75v series, vga nvidia 670mx 3d hdmi, 16gb ram, processor: i7 2,4ghz, 3d video display, 1000 gb hardisk ssd, win8.
 
Upvote 0
Top