Android Question New okHTTP and okHTTPUtils2

Roger C

Active Member
Licensed User
Longtime User
Hi all,

I have problems with these libraries.

I made an app a year ago with the old HTTP and HTTPUtils2 libraries and it works fine. Now I need to change things in the app.
If I use the old libraries I get errors of unknown types so I changed to the new libraries. I have both okHTTP and okHTTPutils2 activ in librarymanager, and not the old ones.
In beginning i got 40 errors about unknown types, if i do changes in the code and declare with okHTTP... it works.

After that, I have one error left and it says HTTPUtils2 are declared twice, remove library or code module...

I need both the library and the code of course... I don't know whats wrong???
I don't get any reference to where/why it is declared twice...

Please help :)

(B4A version 5.80, Android 4.2)
 

Roger C

Active Member
Licensed User
Longtime User
Well... the code seems to work. I don't get any errors from the code after i change the declarations to okHTTP from HTTP...
It's 20.000 lines of code so I have no idea what to post here. The code regarding HTTP is taken from examples in this forum before the change to okHTTP.

But here's the error message
1.jpg
 
Upvote 0

Roger C

Active Member
Licensed User
Longtime User
Ok, but then I get errors from the rest of the code...
I don't understand, a lot of users just changed the library and it works but I have references in the code in other modules of stopping services in these modulse and a lot of other things...
Now these don't work...

It feels as I have to rewrite all code refering to these modules....

I haven't used B4A in a year and think I'm a bit rusty about all this but everyone else says it's just to change libraries. It doesn't work for me...

2.jpg
 
Upvote 0

Roger C

Active Member
Licensed User
Longtime User
Just removed it. :) It seems to work now... I don't think i use it. Need to dig inte the code a bit to see...

Thank for fast reply!!!! You are great Erel.
 
Upvote 0
Top