Android Question (Solved)Optimized Dexer Failed

Mrjoey

Active Member
Licensed User
Longtime User
hello,
i got B4A 3.0 today and registered it
im trying to compile my project built with B4A 1.8 but failed and this is the error :
Parsing code. 0.04
Compiling code. 0.17
Compiling layouts code. 0.01
Generating R file. 0.05
Compiling generated Java code. 1.09
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Ljavazoom/jl/decoder/SynthesisFilter;
at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
at com.android.dx.command.dexer.Main.processClass(Main.java:685)
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.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
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)
1 error; aborting
Optimized dexer failed. Switching to Standard dexer.



i saw similar problems on the forums and said to change the value of MaxRamForDex to 0 or higher than 512, i tried it and failed i tried to set UseOptimizedDexer=True to False and failed again , can u help me plz? is there any solution for it , thank u.
 

Mrjoey

Active Member
Licensed User
Longtime User
problem solved , its a conflict between 2 libraries , im importing 2 libs one is made by me and one called slmp3 , both use Jlayer api , i unchecked mine and tried again and compile succeeded. tnx :)
 
Upvote 0
Top