Android Question java.lang.ClassNotFoundException: anywheresoftware.b4a$objects$collections$JSONParser

Gijsen

Member
Licensed User
Longtime User
I have sub that uses the jsonparser

B4X:
sub ProcessJson(strJson as String)
  Dim JSON As JSONParser
  JSON.Initialize(strJson)
end sub

However as soon as the dim JSON rule is initiated I get the following error:


B4X:
Error occurred on line: 219 (Main)
java.lang.ClassNotFoundException: anywheresoftware.b4a$objects$collections$JSONParser
    at anywheresoftware.b4a.shell.Shell.getCorrectClassName(Shell.java:618)
    at anywheresoftware.b4a.shell.Shell.createObject(Shell.java:590)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:357)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
    at anywheresoftware.b4a.BA$2.run(BA.java:360)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6776)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)

What could be wrong here ?

I did include the JSON module (v 1.10)
My B4A version is 7.80.
 
Top