Android Question Optimized dexer failed. Switching to Standard dexer.

WAZUMBi

Well-Known Member
Licensed User
Longtime User
I know. This problem has been posted before but I have tried all the recommended solutions with no success.

I upgraded to B4A 3.82 yesterday and now I can't compile any of my old apps.
I am trying to upgrade some to Admob 2.0 with Google Play services.

I tried changing
MaxRamForDex=1024 and
MaxRamForDex=1536 and
UseOptimizedDexer=False
Another solution was conflicting libraries.

I was able to update two apps yesterday.
I was experienceing some problems with them hanging during compile also but they eventually worked.
Now, nothing.

After hanging and I get the error message 'Process is running longer than expected. Do you want to cancel it?'
I click on 'No' and get this:

B4X:
Compiling code.                        0.08
Compiling layouts code.                0.00
Generating R file.                      0.28
Compiling generated Java code.          2.22
Convert byte code - dex.                Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lcom/google/ads/AdRequest$Gender;
    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
 

Mikonios

Active Member
Licensed User
Longtime User
I have the same problem

When adding jB4XEncryption: 1.00 :::
"Optimized dexer failed. Switching to Standard dexer"

Deleted libraries old :::
ByteConverter 1.10 and its modules
SMB 1.10 and its modules

Solved !!
 
Upvote 0
Top