java.lang.RuntimeException: Unable to create service GiLo.Impariamoascrivere.com.starter: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4025)
at android.app.ActivityThread.access$1600(ActivityThread.java:226)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1905)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:225)
at android.app.ActivityThread.main(ActivityThread.java:7564)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at GiLo.Impariamoascrivere.com.starter.onCreate(starter.java:39)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4013)
... 8 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at GiLo.Impariamoascrivere.com.starter.onCreate(starter.java:37)
... 9 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lanywheresoftware/b4a/http/HttpClientWrapper;
at anywheresoftware.b4a.samples.httputils2.httputils2service._process_globals(httputils2service.java:180)
at GiLo.Impariamoascrivere.com.main.initializeProcessGlobals(main.java:432)
... 11 more
Caused by: java.lang.ClassNotFoundException: anywheresoftware.b4a.http.HttpClientWrapper
... 13 more
The Title is useless. It should sumarize the Problem.
You are giving not much (near zero) information about your app.
Where is the testproject`-upload showing the Problem?
Are you using old (and depredcated since years) httputils modules?
the title is like this, because the error does not concern anything
I don't use okhttputils, a simple b4xpages project with some panels and some labels, for no reason it started producing that error, and I repeat for no reason
the only difference between before, which worked, and after it stopped working is a value in an addition passed from 1 to 10, a value shown in a label and not that modifies any object
the error is from the b4a compiler
I don't know a smaller project than this,
I solved the problem by changing computer, from laptop to desktop, with identical b4a and identical libraries
sometimes it is the machines that make mistakes
1. The Title is bad. It should summarize the Problem.
2. You haven't provided enough information. You should have uploaded the project that caused this error.
3. The error itself happened because you referenced the very old Http or HttpUtils2 (not OkHttpUtils2) libraries.