Android Question Build error - Resolved.

padvou

Active Member
Licensed User
Longtime User
When compiling, I get this error:
B4X:
B4A version: 6.80
Parsing code.    (0.81s)
Compiling code.    (1.01s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
Generating R file.    (0.11s)
Compiling generated Java code.    (14.46s)
Convert byte code - optimized dex.    Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lokio/AsyncTimeout$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:615)
    at com.android.dx.command.dexer.Main.processFileBytes(Main.java:570)
    at com.android.dx.command.dexer.Main.access$2(Main.java:546)
    at com.android.dx.command.dexer.Main$2.processFileBytes(Main.java:514)
    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:537)
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:449)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:236)
    at com.android.dx.command.dexer.Main.run(Main.java:206)
    at com.android.dx.command.dexer.Main.main(Main.java:179)
    at com.android.dx.command.Main.main(Main.java:103)
1 error; aborting

What is this?
 

padvou

Active Member
Licensed User
Longtime User
I followed another similar post and removed this line: dependsOn>okio-1.4.0</dependsOn from Okhttpuntils2.xml.
Is this error: java.lang.Exception: Sub contents_streamfinish was not found. relevant?
 
Upvote 0

padvou

Active Member
Licensed User
Longtime User
This is a mistake. You are using an older version of the same library. You should use OkHttpUtils2 that was included in the installer.
ok, I removed the duplicate.
Could you please advise me what I should do next?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…