Android Question Barcode Reader scanner error

makis_best

Well-Known Member
Licensed User
Longtime User
I try to implement Erel class for barcode reading but I get the error

java.lang.ClassNotFoundException: com.google.android.gms.vision$barcode$BarcodeDetector$Builder
at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(JavaObject.java:288)
at anywheresoftware.b4j.object.JavaObject.InitializeNewInstance(JavaObject.java:83)
at gr.iosif.esfiitems._createdetector(esfiitems.java:539)
at gr.iosif.esfiitems._activity_create(esfiitems.java:507)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
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 java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at gr.iosif.esfiitems.afterFirstLayout(esfiitems.java:104)
at gr.iosif.esfiitems.access$000(esfiitems.java:17)
at gr.iosif.esfiitems$WaitForLayout.run(esfiitems.java:82)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5376)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)

What it means?
 

makis_best

Well-Known Member
Licensed User
Longtime User
The problem was at "ALL_FORMATS" when I change it to "EAN_13" work just fine...

Thank you Erel.
 
Upvote 0
Top