Android Question KingsMentor Barcode QrCode Scanner - Not Working

Mike1970

Well-Known Member
Licensed User
Hi everyone, i'm trying to find a GOOD and simple barcode scanner, similar to the one we have on iOS.
I found this library from @Johan Schoeman that seems to do the job, since i've to scan code39 and qrcode.
I don't know why... but in this period i'm struggling with Android.
The library gives me this error:
Logger connesso a: HUAWEI JAT-L29
--------- beginning of system
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/app/AppCompatActivity;
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:453)
at java.lang.Class.forName(Class.java:378)
at anywheresoftware.b4a.shell.Shell.getCorrectClassName(Shell.java:624)
at anywheresoftware.b4a.shell.Shell.createObject(Shell.java:611)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:366)
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 JHS.KingsMentor.main.initializeGlobals(main.java:320)
at JHS.KingsMentor.main.afterFirstLayout(main.java:101)
at JHS.KingsMentor.main.access$000(main.java:17)
at JHS.KingsMentor.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.AppCompatActivity" on path: DexPathList[[zip file "/data/app/JHS.KingsMentor-9rLtek5z8GDe0Jw0jCKSrg==/base.apk"],nativeLibraryDirectories=[/data/app/JHS.KingsMentor-9rLtek5z8GDe0Jw0jCKSrg==/lib/arm, /system/lib, /product/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)
... 20 more

I've update the sdk, jetified the libs.
I attach the example i tried.

If you know a barcode/qrcode scanner lib that is currently working properly, i would happy to get some tips.
Thanks in advance!
 

Attachments

Top