KatexMathView
It is a wrap for this Github project. No other libs required other than the attached B4A libraries. Extract them and copy them to your additional library folder. You need to download and extract this folder (https://www.dropbox.com/s/1sthbkm5vc7fa0h/katex.zip?dl=0) and copy the folder with its...
www.b4x.com
I downloaded the katexmathview library and application. It fails with the following errors:
Error occurred on line: 38 (Main)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:155)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at JHS.KatexMathView.main._activity_create(main.java:395)
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:157)
at JHS.KatexMathView.main.afterFirstLayout(main.java:105)
at JHS.KatexMathView.main.access$000(main.java:17)
at JHS.KatexMathView.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7918)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:147)
... 19 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/ContextCompat;
at katex.hourglass.in.mathlib.MathView.<init>(MathView.java:51)
at mathviewwrapper.mathviewWrapper._initialize(mathviewWrapper.java:73)
... 22 more
Caused by: java.lang.ClassNotFoundException: android.support.v4.content.ContextCompat
... 24 more
** Activity (main) Resume **
Adding the additionaljar line does not help, I checked the sdk and it is installed there.
B4X:
#Additionaljar: com.android.support:support-v4
The cause is: "Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/ContextCompat;"
I'll appreciate help here...