Android Question OkHttpUtils2 v.3.04 lib: error "onReceive not found in httputils2service"

peacemaker

Expert
Licensed User
Longtime User
Hi, All

This non-fatal error occurs in OkHttpUtils2 v.3.04 under Android 14 and B4A v13 in Release mode.
Any updated version ?
 
Solution
What version works with Android 14 and B4A v13 ?
It was old app that used old HttpJob.bas and HttpUtils2Service.bas version 2.10 (based on OkHttp library).

I have updated to OkHttpUtils2 lib v.3.04, updated B4A to v13, targetSdkVersion="34", added:

AddPermission(android.permission.FOREGROUND_SERVICE_DATA_SYNC)
SetServiceAttribute(inetsrv, android:foregroundServiceType, "dataSync")

And it's OK in Debug-mode as before.
But when to start in Release, it's ......

Boom ! I have just realised that old HttpUtils2Service.bas also must be removed.
And all is OK with

OkHttpUtils2 v.3.04 lib​


Thanks, Erel. As usual if to analyze all step by step - the solution is here.

peacemaker

Expert
Licensed User
Longtime User
What version works with Android 14 and B4A v13 ?
It was old app that used old HttpJob.bas and HttpUtils2Service.bas version 2.10 (based on OkHttp library).

I have updated to OkHttpUtils2 lib v.3.04, updated B4A to v13, targetSdkVersion="34", added:

AddPermission(android.permission.FOREGROUND_SERVICE_DATA_SYNC)
SetServiceAttribute(inetsrv, android:foregroundServiceType, "dataSync")

And it's OK in Debug-mode as before.
But when to start in Release, it's ......

Boom ! I have just realised that old HttpUtils2Service.bas also must be removed.
And all is OK with

OkHttpUtils2 v.3.04 lib​


Thanks, Erel. As usual if to analyze all step by step - the solution is here.
 
Upvote 1
Solution
Top