Android Question Could not find okhttp2utils.xml

Juan Vargas (Bioagro)

Member
Licensed User
Have some time since not using the compiler. Updated to latest version and now I receive this message

Could not find file okhttputils2.xml

What I am missing?
 

Juan Vargas (Bioagro)

Member
Licensed User
If you have updated B4a to the lastest version, the okhttputils2.b4xlib is a internal library, try to delete okhttputils2.jar in external library folder
Thanks for the reply.
There's no okhttputils2.jar in the library folder, there is the .b4xlib.

I have not used the b4x since version 11. Now I have a lot of errors
I reinstalled the B4X and all the files noted in the download page. Followed the instructions. I dont know what else to do. I think I will reverse to the old version

B4X:
Main - 24259: Unknown type: ftpentry<br />Are you missing a library reference?
Main - 1210: Unknown type: pdfstandardfonts<br />Are you missing a library reference?
Main - 1209: Unknown type: pdfpapersizes<br />Are you missing a library reference?
Main - 1208: Unknown type: pdfwriter<br />Are you missing a library reference?
Main - 977: Unknown type: betterdialogs<br />Are you missing a library reference?
Main - 735: Unknown type: ahpopupmenu<br />Are you missing a library reference?
Main - 734: Unknown type: ahpopupmenu<br />Are you missing a library reference?
Main - 733: Unknown type: ahpopupmenu<br />Are you missing a library reference?
Main - 732: Unknown type: ahpopupmenu<br />Are you missing a library reference?
Main - 731: Unknown type: ahpopupmenu<br />Are you missing a library reference?
Main - 730: Unknown type: ahpopupmenu<br />Are you missing a library reference?
Main - 729: Unknown type: ahpopupmenu<br />Are you missing a library reference?
Main - 728: Unknown type: ahpopupmenu<br />Are you missing a library reference?
Main - 727: Unknown type: ahpopupmenu<br />Are you missing a library reference?
Main - 726: Unknown type: ahpopupmenu<br />Are you missing a library reference?
Main - 725: Unknown type: ahquickaction<br />Are you missing a library reference?
Main - 614: Unknown type: maskededittext<br />Are you missing a library reference?
Main - 584: Unknown type: contentchooser<br />Are you missing a library reference?
Main - 573: Unknown type: tabhostextras<br />Are you missing a library reference?
Main - 525: Unknown type: operatingsystem<br />Are you missing a library reference?
Main - 493: Unknown type: reflector<br />Are you missing a library reference?
Main - 491: Unknown type: smtp<br />Are you missing a library reference?
Main - 490: Unknown type: pdfjettextline<br />Are you missing a library reference?
Main - 488: Unknown type: pdfjetfont<br />Are you missing a library reference?
Main - 487: Unknown type: pdfjetpage<br />Are you missing a library reference?
Main - 486: Unknown type: pdfjetpdf<br />Are you missing a library reference?
Main - 141: Unknown type: asyncstreams<br />Are you missing a library reference?
Main - 138: Unknown type: serial<br />Are you missing a library reference?
Main - 137: Unknown type: serial<br />Are you missing a library reference?
Main - 136: Unknown type: bluetoothadmin<br />Are you missing a library reference?
Main - 121: Unknown type: cursor<br />Are you missing a library reference?
Main - 120: Unknown type: stringfunctions<br />Are you missing a library reference?
Main - 105: Unknown type: sql<br />Are you missing a library reference?
Main - 104: Unknown type: cursor<br />Are you missing a library reference?
Main - 103: Unknown type: sql<br />Are you missing a library reference?
Main - 102: Unknown type: sql<br />Are you missing a library reference?
Main - 100: Unknown type: saxparser<br />Are you missing a library reference?
Main - 59: Unknown type: viewsetting<br />Are you missing a library reference?
Main - 58: Unknown type: audiorecordapp<br />Are you missing a library reference?
Main - 55: Unknown type: whatsapp<br />Are you missing a library reference?
Main - 53: Unknown type: gps<br />Are you missing a library reference?
Main - 45: Unknown type: pdfjetconstants<br />Are you missing a library reference?
Main - 41: Unknown type: phonewakestate<br />Are you missing a library reference?
Main - 21: Unknown type: javaobject<br />Are you missing a library reference?
 
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
You are missing a lot of libraries. Goto the libraries tab and select all the libraries mentioned.

SQl, javaobject, pdfject, saxparser, gps, phone, stringutils, etc.

some libraries are deprecated, some have not been updated for a while so you must find another library to replace them.

Its best you try and fix all errors and continue with using the latest version rather than going back to old version.
 
Upvote 0

teddybear

Well-Known Member
Licensed User
What is the B4A version you are using?
What is the Additonal Libraries ptah in Paths Configuration?
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Where did you install the latest version of B4A ?
Since version 12.00 B4A is a 64 bit application.
I suggest you to reinstall everything following exactly the instructions HERE.
Then, i suggest you to install a special folder for the additional libraries, you can follow the instructions HERE.
 
Upvote 0

Juan Vargas (Bioagro)

Member
Licensed User
Today. I followed the instructions. I found that the additional library folder has special folders, I just did that and reinstalled B4A.
Seems most of the libraries problems has been resolved. Now I am dealing with the 'externalstorage', its a module in the program but it says it is unknown.
 
Upvote 0

Juan Vargas (Bioagro)

Member
Licensed User
I see that in the library listing, there are many selected that does show nothing in the ONLINE column. Is that a problem?
For instance, I use the dropbox, but it is not recognized by the program now, it says that I am missing a library reference.
But the library is there, and is in the additional folder too. It worked before.....
 
Upvote 0

Juan Vargas (Bioagro)

Member
Licensed User
I give up. Hours trying to make this working.
Followed carefully all the steps. Again the library reference errors. Had specified the additional library folder. Made the structure (B4A, B4J etc).
It works for an empty project, but my large project gives me a lot of errors. Why does this has to be like this? It just from version 11 to 12.80, and Im lost. Just to make a little change. I cant.
Unknow type: javaobject (javaobject is marked in the library list)
External storage: Unknow (is a module and is in the project)
Sql, missing library reference? My God, it is in the library and marked!
dozens of similar errors.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
ExternalStorage is a module, you need to copy it to your project folder and add it in the IDE with Project/Add Existing Modules.
DropBox is an additional library, you should copy the DropboxV2.jar and the DropboxV2.xml files into the \AdditionalLibraries\B4A folder.
I see that in the library listing, there are many selected that does show nothing in the ONLINE column. Is that a problem?
No.
Not all librairies, manly older ones, are managed do not have the Online version.
For all 'Internal' libraries do not worry, those are automatically updated when you update B4A.
For 'Additional' you can either click on the Online link to get to its forum page, or you need to search in the forum.
Sql, missing library reference? My God, it is in the library and marked!
Did you also update the AdditionalLibaries field in Tools / Configure paths ?

 
Upvote 0

Juan Vargas (Bioagro)

Member
Licensed User
Yes. The path is correct in the additional library folder.
It has the dropbox v2 in there.
I know externalstorage is a module. It is included. I downloaded the one in the forum

The weirdest thing is that I have another project that uses externalstorage, runtimeprersmissions and other libraries, and it works.
Why it doesn't work in the other project? I haven't touch anything in any of those. Maybe in changing the versions there are some configuration file that or it is corrupted or outdated. In other project, the function 'msgbox2' says that a "," is missing in all the calls to that function. Why is that? It works perfectly. in other projects.

Is there something in the manifest file that I have to update? I have selected clean project, and reset. Nothing works.
 
Upvote 0

Juan Vargas (Bioagro)

Member
Licensed User
Goto you Additional library and delete the Manifestlang.xml
Well, we are advancing. Now I got no error loading the compiler. And some projects compile fine.
But the large one does not, Im getting this
Error description: HttpUtils2Service is declared twice. You should either remove the library reference or the code module.

Im looking for that declaration in all the code, and the search did not find anything. Then, if I remove the library okhttputils2, more errors surge. Dont know what to do here.
Maybe other library is using thet. Im using dropbox, maybe is that.
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Try to add the conditional symbol HU2_PUBLIC.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…