Android Question Compile code from 3.82 B4A version to 13.10

IT25

New Member
I need, to compile sources from B4A 3.82 to actual 13.10 version, to support newest Android versions, but
don't have any knowledge about B4A and having experienced I lot of dificulties trying to do it.
I am stucked, for days, in a message "Cannot find: C:\Program Files\Anywhere Software\B4A\libraries\http.jar".
I read everything in the forum (specially about to use oKHttpUtils2), tried to make some adjustments, but can´t solve the problem.
Can someone help me please?
At this moment, I just need to complile the old sources to B4A 13.10 version.
Thank you so much.
 

Sagenut

Expert
Licensed User
Longtime User
First of all you must be sure that you have installed everything correctly following ALL the steps and downloading EVERYTHING needed from here
https://www.b4x.com/b4a.html
You need to make everything like a first time installation.
After that we will probably need more info and probably some code to check.
 
Upvote 0

IT25

New Member
First of all you must be sure that you have installed everything correctly following ALL the steps and downloading EVERYTHING needed from here
https://www.b4x.com/b4a.html
You need to make everything like a first time installation.
After that we will probably need more info and probably some code to check.
Hello. Yes I checked again the installation. It´s correct.
About the code I have a main code that uses some additional libraries. Two of them seems like part of this problem.
When I compile the additional libraries, one compile until the end and the other I receive the message "Cannot find: C:\Program Files\Anywhere Software\B4A\libraries\http.jar".
The same message I receive when try to compile the main code.
What can I send that helps to solve this problem?
Thank you so much.
 
Upvote 0

IT25

New Member
Which libraries are you using? It looks like you are using the very old HttpUtils. You should indeed replace it with OkHttpUtils2.
Hello.
I am sending some pictures, hope it helps.
One of them yClientIssuer, uses OkHttpUtils2, that one compile alone without errors.
The other one, yConfig, that uses yClientIssuer, when I tryied to compile, I received the http error.
Thank you so much.
 

Attachments

  • Print Screen.jpg
    Print Screen.jpg
    106.1 KB · Views: 17
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
I am stucked, for days, in a message "Cannot find: C:\Program Files\Anywhere Software\B4A\libraries\http.jar".
I read everything in the forum (specially about to use oKHttpUtils2), tried to make some adjustments, but can´t solve the problem.
Can someone help me please?
There are a number of challenges.
Some, such as the HTTP libraries, have been adapted to new Android requirements and have been renamed, and some libraries no longer work under Android 13.
There are standard internal libraries (which are found automatically) and there are additional libraries that you have to download separately in the directory you specified (via Tools, Configure Paths)

When you open the original source code of Android B4A 3.82 for the first time, a short toast message will appear stating which libraries cannot be found. Make a screenshot of this, because in some cases this is only displayed on the first start-up.
In addition, DoEvents no longer works, which can usually be replaced by Sleep(0).
Furthermore, the use of the msgbox command has also changed.

Without any description of what the application should do and without the source code, no one can help you here. First go through the above points, download additional libraries and then see what works and what does not work.
 
Upvote 0

IT25

New Member
There are a number of challenges.
Some, such as the HTTP libraries, have been adapted to new Android requirements and have been renamed, and some libraries no longer work under Android 13.
There are standard internal libraries (which are found automatically) and there are additional libraries that you have to download separately in the directory you specified (via Tools, Configure Paths)

When you open the original source code of Android B4A 3.82 for the first time, a short toast message will appear stating which libraries cannot be found. Make a screenshot of this, because in some cases this is only displayed on the first start-up.
In addition, DoEvents no longer works, which can usually be replaced by Sleep(0).
Furthermore, the use of the msgbox command has also changed.

Without any description of what the application should do and without the source code, no one can help you here. First go through the above points, download additional libraries and then see what works and what does not work.
Hello, the first time I opened the sources, I receive a message with the libraries that cannot be found. I made a lot of adjustments and now I have only this message, about Http. I am posting here three of the sources codes (not all the code). If you can see them and could tell me if you find something wrong, I´ll appreciate. If not, I think the best solution is someone look all the code for me. I am interested to learn B4A but it takes time :/
This app is for waiters taking orders in a restaurant. It is integrated with another software to receive the orders.
thanks for the help
 

Attachments

  • pedido.zip
    21.4 KB · Views: 9
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
1743848560883.png
Please post the zip file of the export so that we can help you.
 
Upvote 0
Top