Android Question Net library conflicting with the Network library

NeoTechni

Well-Known Member
Licensed User
Longtime User
I'm having some trouble. It won't let me include the NET library at the same time as the Network library (at least I assume that's where the conflict is coming from). I need the network lib to handle my downloads, and I want to be able to access FTP servers

B4A version: 5.50
Parsing code. (4.32s)
Compiling code. (2.72s)
Compiling layouts code. (0.00s)
Generating R file. (0.04s)
Compiling generated Java code. (10.52s)
Convert byte code - 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: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
 

DonManfred

Expert
Licensed User
Longtime User
Works for me...

net0061.png


Please check your versions
 
Upvote 0

NeoTechni

Well-Known Member
Licensed User
Longtime User
It might have been that I accidentally added the ABFTF library at some point. I assume that handles FTP so I'll just use it.
 
Upvote 0
Top