Android Question Http.jar missing B4A 11.50

EduardoElias

Well-Known Member
Licensed User
Longtime User
B4X:
B4A Version: 11.50
Parsing code.    (1.87s)
    Java Version: 8
Building folders structure.    (0.06s)
Compiling code.    (0.89s)
Compiling layouts code.    (0.12s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.79s)
Linking resources    (1.09s)
Compiling generated Java code.    Error
Cannot find: C:\Program Files (x86)\Anywhere Software\Basic4android\libraries\http.jar

I have looked up for all the okhttp* and changed to OkHttpUtils2

I have many libraries and I have changed them all to use this and recompiled (alt 5) as usual

Deleted the basic4android folder and reinstalled again

What can be done?
 

DonManfred

Expert
Licensed User
Longtime User
Are you using an OLD (and deprecated since YEARS) httputils module or library instead of okhttputils2?
 
Upvote 1

EduardoElias

Well-Known Member
Licensed User
Longtime User
Are you using an OLD (and deprecated since YEARS) httputils module or library instead of okhttputils2?
I am already switched to okhttputils2 but still not finding...

1648175247867.png


These are the libraries that I am using.

My own libraries are ok, but not sure if there is another on this list that is using http.jar

I have removed all things, SDK, Java, B4A, I am still having the problem.... it is driving me crazy
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I have looked up for all the okhttp* and changed to OkHttpUtils2
Search for httputils. Do you find a MODULE named like this in your project?

Create a new project and add all these libraries; one by one and compile it until you get this error.
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
Search for httputils. Do you find a MODULE named like this in your project?

Create a new project and add all these libraries; one by one and compile it until you get this error.

your trick of creating a new project was wonderful, thank you... i found one library that had the old okhttp checked.

my problem now is:

"sending message to waiting queue of uninitialized activity (submitjob)"

I had this before, and switched versions of okhttputils because that... now with the new version (that is compiling ok) I am back to it
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
I have a library that comunicate using HTTPJOB with my REST Server, it always worked

moving tho the new 11.50 compiler started with this "sending message to waiting queue of uninitialized activity (submitjob)"

I have created a small test app that uses the code directly (not like library) and it works.

Using it as alt-5 libery in my main app it gets this message.

cannot switch to BAXPages, project too big (40k lines) and writteng on the standard style

My library is basically creating calls to http server with parameters to wait for json responses

Everything done inside the library and the result is calling an event (callsub) to the main activity.

I do not use it as service, it is called from the main activity

Any Ideas?
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
In a non-B4XPages project, it is simplest to send the http requests from the starter service, as it is never paused.
I moved back to previous version of B4A and did not work, then I moved either back to a older version of okhttputils and using "wait for" it worked without moving things from. So I am creating the httpjob from the library besides anything


I tried the same thing with the lastest 11.5 and latested okhttpuils2 that come with it using the wait for and this trick did not work.

What is the reason this worked for the old compiler/library and didnt for the new?
 
Upvote 0
Top