I've just purchased the 3.80 version of B4A and when compiling my project, get the following error:
I've windows 8.1
Parsing code. 0.46
Compiling code. 1.22
Compiling layouts code. 0.09
Generating R file. 0.22
Compiling generated Java code. 7.26
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Landroid/support/v4/print/PrintHelper$1;
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 tried to change the MaxRamForDex with "1536" value and UseOptimizedDexer with "False" but i've got the same error
[UPDATE]
!! After update the B4A i've add the Facebook SDK library and i've added the following attributes
#AdditionalRes: ..\AppConfig
#AdditionalRes: C:\Program Files (x86)\Android\fb-sdk\res
#AdditionalJar: C:\Program Files (x86)\Android\fb-sdk\bolts.jar
#AdditionalJar: C:\Program Files (x86)\Android\fb-sdk\android-support-v4.jar
#AdditionalJar: C:\Program Files (x86)\Android\fb-sdk\facebooksdk.jar
with these attributes gets the error, commented these and compiles
in detail the attribute that cause the error is this:
#AdditionalJar: C:\Program Files (x86)\Android\fb-sdk\android-support-v4.jar
I've windows 8.1
Parsing code. 0.46
Compiling code. 1.22
Compiling layouts code. 0.09
Generating R file. 0.22
Compiling generated Java code. 7.26
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Landroid/support/v4/print/PrintHelper$1;
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 tried to change the MaxRamForDex with "1536" value and UseOptimizedDexer with "False" but i've got the same error
[UPDATE]
!! After update the B4A i've add the Facebook SDK library and i've added the following attributes
#AdditionalRes: ..\AppConfig
#AdditionalRes: C:\Program Files (x86)\Android\fb-sdk\res
#AdditionalJar: C:\Program Files (x86)\Android\fb-sdk\bolts.jar
#AdditionalJar: C:\Program Files (x86)\Android\fb-sdk\android-support-v4.jar
#AdditionalJar: C:\Program Files (x86)\Android\fb-sdk\facebooksdk.jar
with these attributes gets the error, commented these and compiles
in detail the attribute that cause the error is this:
#AdditionalJar: C:\Program Files (x86)\Android\fb-sdk\android-support-v4.jar
Last edited: