NET lib

Rusty

Well-Known Member
Licensed User
Longtime User
I have encountered an error that I can't resolve with the NET lib.
The below set of errors occur when I merely checkbox the NET lib (v1.20)
I have taken ALL code that tries to use the NET lib completely out of the application (which runs) and I still get the errors. If I remove the NET lib checkbox, the application compiles and runs.
Any ideas what these errors might mean. (BTW, I've looked at the unfiltered logs and there are NO messages.)

New information: I have installed the new v1.30 NET lib, same results. Also, I am using the new 2.50 compiler.

B4X:
Parsing code.                           0.35
Compiling code.                         0.52
Compiling layouts code.                 0.05
Generating R file.                      1.59
Compiling generated Java code.          5.08
Convert byte code - optimized dex.      Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lorg/apache/commons/net/DatagramSocketClient;
    at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
    at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
    at com.android.dx.command.dexer.Main.processClass(Main.java:486)
    at com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
    at com.android.dx.command.dexer.Main.access$400(Main.java:67)
    at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
    at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
    at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
    at com.android.dx.command.dexer.Main.processOne(Main.java:418)
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
    at com.android.dx.command.dexer.Main.run(Main.java:206)
    at com.android.dx.command.dexer.Main.main(Main.java:174)
    at com.android.dx.command.Main.main(Main.java:91)
1 error; aborting
    Optimized dexer failed. Switching to Standard dexer.
 
Last edited:

Rusty

Well-Known Member
Licensed User
Longtime User
These are the libraries loaded with the current project.
Thanks Erel

B4X:
Library1=administrator
Library2=animation
Library3=audio
Library4=byteconverter
Library5=core
Library6=customtoast
Library7=dialogs
Library8=encryption
Library9=ftp
Library10=gps
Library11=icostexttospeech
Library12=ime
Library13=jhwifi
Library14=network
Library15=pdfwriter
Library16=phone
Library17=preferenceactivity
Library18=randomaccessfile
Library19=reflection
Library20=richstring
Library21=spdialogs
Library22=splistview
Library23=sql
Library24=stringutils
Library25=tts
Library26=vbwep
Library27=webviewextras
Library28=xmlsax
 
Upvote 0
Top