Android Question error QR scanner with R8

jhgtapp

New Member
Which QR scanner works with R8?

I get the error below with R8 enabled; without it, it works fine.


main_createdetector (java line: 36)
java.lang.ClassNotFoundException: com.google.android.gms.vision$barcode$BarcodeDetector$Builder
at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(SourceFile:89)
at anywheresoftware.b4j.object.JavaObject.InitializeNewInstance(SourceFile:1)
at nl.jhgtapp.FGOLijsten.main._createdetector(SourceFile:36)
at nl.jhgtapp.FGOLijsten.main$ResumableSub_Activity_Create.resume(SourceFile:866)
at *************._activity_create(SourceFile:9)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(SourceFile:106)
at *************.main.afterFirstLayout(SourceFile:186)
at *************.access$000(SourceFile:1)
at *************.main$WaitForLayout.run(SourceFile:68)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
 
Back
Top