I have a pretty big app that working with no problems on several devices (Samsung Tab, Asus Tab and Huawei phones)
After last modification (added a Service to remind once a day to check something) i'we got the error:
This error rise ONLY on Samsung S9! I'we tested the app on 2 different phones but result is the same. On Samsung T825 with Android 8, Samsung P6800 with Android 4.1.2 and Asus Zenpad P01Z with Android 5.0.2 working perfectly.
After last modification (added a Service to remind once a day to check something) i'we got the error:
B4X:
Logger connected to: samsung SM-G960F
--------- beginning of main
Copying updated assets files (71)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
demo@yahoo.com
** Activity (main) Resume **
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost;
at anywheresoftware.b4a.http.HttpClientWrapper$HttpUriRequestWrapper.InitializePost2(HttpClientWrapper.java:395)
at anywheresoftware.b4a.samples.httputils2.httpjob._postbytes(httpjob.java:185)
at anywheresoftware.b4a.samples.httputils2.httpjob._poststring(httpjob.java:233)
at isorihner.softxxi.main$ResumableSub_VerificaLogin.resume(main.java:1207)
at isorihner.softxxi.main._verificalogin(main.java:1155)
at isorihner.softxxi.main$ResumableSub_ButLogin_Click.resume(main.java:1141)
at anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub.resumeAsUserSub(DebugResumableSub.java:48)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub.resume(DebugResumableSub.java:43)
at anywheresoftware.b4a.keywords.Common$13.run(Common.java:1705)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:6986)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.client.methods.HttpPost" on path: DexPathList[[zip file "/data/app/isorihner.softxxi-0G4voQ0v_puPDPuNfxrsfw==/base.apk"],nativeLibraryDirectories=[/data/app/isorihner.softxxi-0G4voQ0v_puPDPuNfxrsfw==/lib/arm64, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 24 more
Service started in the background. Trying to start again in foreground mode.
This error rise ONLY on Samsung S9! I'we tested the app on 2 different phones but result is the same. On Samsung T825 with Android 8, Samsung P6800 with Android 4.1.2 and Asus Zenpad P01Z with Android 5.0.2 working perfectly.