Android Question Remove reference to unused library

warwound

Expert
Licensed User
Longtime User
I am updating a b4a app which must be compatible with android api 19+, my update needs to make HTTP requests.

I have taken the old OkHttp and OkHttpUtils2 libraries - the old versions that are compatible with android api 19+ - and made 2 new libraries OkHttpLegacy an OkHttpUtils2.Legacy.
This enables the old versions and new versions of these libraries to co-exist in my libraries folders with no conflicts.

When I check the checkboxes for my 2 new libraries, b4a IDE tells me:

HttpUtils2Service is declared twice. You should either remove the library reference or the code module.

But in the libraries panel in the IDE there are no other http related libraries checked.
HTTP and HttpUtils2 are not checked.
OkHttp and OkHttpUtils2 are not checked.
HttpUtils has not been added to the project as a code module - there's no related .bas file in the project source.

I unchecked my 2 libraries and clicked the 'List Permissions' button.
It lists:

anywheresoftware.b4a.samples.httputils2.httputils2service
android.permission.INTERNET

I've attached screenshots of my IDE libraries panel and also the Permissions dialog.

How can I find and remove references to the HttpUtils2 library?
I'm assuming that some time ago the app used the HttpUtils2 library, it was removed but traces remain.
 

Attachments

  • libraries panel.jpg
    160.8 KB · Views: 112
  • permissions.jpg
    54.7 KB · Views: 112

drgottjr

Expert
Licensed User
Longtime User
anywheresoftware.b4a.samples.httputils2.httputils2service

how old could this be? anywheresoftware.b4a.samples ?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
How can I find and remove references to the HttpUtils2 library?

for Example Appupdating has some dependsOn included

Check the library xml

B4X:
 <dependsOn includesSingletonModules="true">httputils2</dependsOn>
  <dependsOn>phone</dependsOn>
  <dependsOn>reflection</dependsOn>
  <dependsOn>http</dependsOn>
  <dependsOn>stringutils</dependsOn>
 
Last edited:
Upvote 0

warwound

Expert
Licensed User
Longtime User
Ahhh my old version of Appupdating uses the old HTTP library - that explains everything.
I'll update Appupdating to version 2.05 and see if I can get it to work with my older OkHttp library.

Thanks to you all for the help.
 
Upvote 0

udg

Expert
Licensed User
Longtime User
I expect it should work (2.05).
Anyway, since recently I found that these days we reached AU 10th anniversary, on my first free weekend I will prepare AU 3.00 so to have something closer to current development trends..
udg
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…