I'm not even sure where to start? I got the warning suggesting to update the manifest to targetSdkVersion="28"
So I did. Now a project that worked perfectly with it set to 27, fails when I set it to 28?
Please ignore &deviceid=unknown in my call, I would normally get a JSON error message back with device unknown, but in this instance it just crashes
All I have to do to get it all working as expected is to set the manifest back to 27.
I would like to use the latest one, so if someone could help me overcome this issue, it would make my day
** Activity (main) Resume **
Class anywheresoftware.b4a.B4AThreadPool failed lock verification and will run slower.
EGLNativeWindowType 0xe79f3008 disconnect failed
eglDestroySurface = 0xcfe56000, 0xe79f3000
Relayout returned: old=[120,837][1079,1011] new=[120,837][1079,1011] result=0x5 surface={false 0} changed=true
Relayout returned: old=[0,0][1200,1920] new=[0,0][1200,1920] result=0x1 surface={true 3986130944} changed=false
MSG_WINDOW_FOCUS_CHANGED 1 1
prepareNavigationBarInfo() DecorView@e8be930[main]
getNavigationBarColor() -855310
MSG_WINDOW_FOCUS_CHANGED 0 1
Web. OK
?ACTION=SELECT&fields=`stocklocation`.`idStockLocation`, `stocklocation`.`LocationDescription` &table=`stocklocation`&where=`stocklocation`.`idStockLocation` <> 0&order=`stocklocation`.`LocationDescription` &deviceid=unknown
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpGet;
at anywheresoftware.b4a.http.HttpClientWrapper$HttpUriRequestWrapper.InitializeGet(HttpClientWrapper.java:342)
at anywheresoftware.b4a.samples.httputils2.httpjob._download2(httpjob.java:109)
at atec.marcus.asmstocktaker.clsdb$ResumableSub_GetRecordset.resume(clsdb.java:1367)
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:348)
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.raiseEvent(BA.java:176)
at anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub.resume(DebugResumableSub.java:43)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:250)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:137)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at anywheresoftware.b4a.keywords.Common$14.run(Common.java:1761)
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:7100)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.client.methods.HttpGet" on path: DexPathList[[zip file "/data/app/atec.marcus.asmstocktaker-gAvan0iRrT2MAaQGGyeBJw==/base.apk"],nativeLibraryDirectories=[/data/app/atec.marcus.asmstocktaker-gAvan0iRrT2MAaQGGyeBJw==/lib/arm, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 23 more
So I did. Now a project that worked perfectly with it set to 27, fails when I set it to 28?
Please ignore &deviceid=unknown in my call, I would normally get a JSON error message back with device unknown, but in this instance it just crashes
All I have to do to get it all working as expected is to set the manifest back to 27.
I would like to use the latest one, so if someone could help me overcome this issue, it would make my day
** Activity (main) Resume **
Class anywheresoftware.b4a.B4AThreadPool failed lock verification and will run slower.
EGLNativeWindowType 0xe79f3008 disconnect failed
eglDestroySurface = 0xcfe56000, 0xe79f3000
Relayout returned: old=[120,837][1079,1011] new=[120,837][1079,1011] result=0x5 surface={false 0} changed=true
Relayout returned: old=[0,0][1200,1920] new=[0,0][1200,1920] result=0x1 surface={true 3986130944} changed=false
MSG_WINDOW_FOCUS_CHANGED 1 1
prepareNavigationBarInfo() DecorView@e8be930[main]
getNavigationBarColor() -855310
MSG_WINDOW_FOCUS_CHANGED 0 1
Web. OK
?ACTION=SELECT&fields=`stocklocation`.`idStockLocation`, `stocklocation`.`LocationDescription` &table=`stocklocation`&where=`stocklocation`.`idStockLocation` <> 0&order=`stocklocation`.`LocationDescription` &deviceid=unknown
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpGet;
at anywheresoftware.b4a.http.HttpClientWrapper$HttpUriRequestWrapper.InitializeGet(HttpClientWrapper.java:342)
at anywheresoftware.b4a.samples.httputils2.httpjob._download2(httpjob.java:109)
at atec.marcus.asmstocktaker.clsdb$ResumableSub_GetRecordset.resume(clsdb.java:1367)
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:348)
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.raiseEvent(BA.java:176)
at anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub.resume(DebugResumableSub.java:43)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:250)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:137)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at anywheresoftware.b4a.keywords.Common$14.run(Common.java:1761)
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:7100)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.client.methods.HttpGet" on path: DexPathList[[zip file "/data/app/atec.marcus.asmstocktaker-gAvan0iRrT2MAaQGGyeBJw==/base.apk"],nativeLibraryDirectories=[/data/app/atec.marcus.asmstocktaker-gAvan0iRrT2MAaQGGyeBJw==/lib/arm, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 23 more