Android Question problem with httputils and upgrade from B4A 6.00 to 6.80

Tomas Petrus

Active Member
Licensed User
Longtime User
I am developing new project based on older one.

I need to use notifications and I found out that there is newer solution - firebased notifications, but
when I have added FBN to manifest the application started to crash imediately after startup with NO logs

I started thinking that it could be caused by older B4A, I've got 6.00 - the latest version I found in email was 6.80 - so I instaled it.

The httputils2 got unchecked in libraries and I have got errors based on this mising library, so
I have tried to activate following libraries (OkHttpUtils2, HttpsUtils2, OkHttp, Http) and different combinations of them but nothing works. With OkHttpUtils2 (that I think should be right lib)

I've got following error:


B4A version: 6.80
Parsing code. (0.01s)
Compiling code. (0.24s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
Generating R file. (0.33s)
Compiling debugger engine code. (1.09s)
Compiling generated Java code. (1.54s)
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

I am also using:
AppUpdating
FusedLocationProvide
GPS
Phone
WebViewExtras

What is the problem and how should I proceed ? thanks.
 
Top