Android Question HttpUtils2Service is declared twice

rafaelmotaquintana

Active Member
Licensed User
Hello.
I have seen this messages before in the forum, after upgrade to version 9, the project display this error

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

But I dont have Httputils or something similar in modules, and Library reference only OkHttpUtils2.
I hace performed a full search of Httputils and nothing.
Project is too big to be uploaded. Please help.
 

DonManfred

Expert
Licensed User
Longtime User
try this

The problem IS this lib. It is a mistake to include the okhttpmodules in the library.
 

Attachments

  • libGoogleDrive.jar
    30.3 KB · Views: 147
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is related to the conversion of OkHttUtils2 to a b4xlib.

If this library is important for you and the source code of it is not available then you can delete the OkHttpUtils2.b4xlib from the internal libraries folder and use the older library (which should still be there).

If the source code is available then you should covert the library to a b4xlib (which is very simple) or use the code directly.
 
Upvote 0

rafaelmotaquintana

Active Member
Licensed User
Thanks for the information. I decided to remove the library googledrive, it seems to be problematic. Also, okhttputils and okhttp because are no longer used. Weird thing is that google play store is alerting that the new app will be installed in fewer devices if I tried to remove the previous version.
I did not modified the manifest, only compiled this program in version 9, the previous program is from version 8.
 
Upvote 0
Top