Spanish orientacion con OkHttp

mvera

Active Member
Licensed User
Longtime User
hola estoy migrando a okhttp.

-baje las libreria que vi en este mismo foro
-active dentro de mi b4a okHttpUtils2

-en los globals Dim envio_registro As HttpJob

-iniciamos envio_registro.Initialize("carga",Me)

-dentro de un boton llamamos

B4X:
           miniruta=""&Main.ruta_s&"registro.php"
           Log("RUTA :"&miniruta) 'La ruta esta correcta.
          
           envio_registro.PostString(miniruta, "nombre="&vnombre&"&email="&vtemail&"")







Me marca un error de este tipo , que no logro entender.

java.lang.NoClassDefFoundError: Failed resolution of: Lanywheresoftware/b4a/objects/ServiceHelper$StarterHelper;
at anywheresoftware.b4a.samples.httputils2.httputils2service.onCreate(httputils2service.java:48)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2762)
at android.app.ActivityThread.access$1800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1386)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5255)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)
Caused by: java.lang.ClassNotFoundException: Didn't find class "anywheresoftware.b4a.objects.ServiceHelper$StarterHelper" on path: DexPathList[[zip file "/data/app/b4a.example-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 11 more
Suppressed: java.lang.ClassNotFoundException: anywheresoftware.b4a.objects.ServiceHelper$StarterHelper
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 12 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

note: Me base en un codigo que me funcionaba en HttpUtils2
gracias.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…