Android Question problems with MobileVisionBarcodeScanner

Sberla

Active Member
Licensed User
Longtime User
I'm testing this class with android 9 sdk 28

https://www.b4x.com/android/forum/threads/mobilevisionbarcodescanner.72232/

but it gives me this error

Logger connesso a: samsung SM-G950U
--------- beginning of main
Copying updated assets files (1)
*** 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.MVBarcodeScanner.main.initializeGlobals(main.java:320)
at JHS.MVBarcodeScanner.main.afterFirstLayout(main.java:101)
at JHS.MVBarcodeScanner.main.access$000(main.java:17)
at JHS.MVBarcodeScanner.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7045)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.AppCompatActivity" on path: DexPathList[[zip file "/data/app/JHS.MVBarcodeScanner-QQjtbnuAcyHQKQ2ii82F8A==/base.apk"],nativeLibraryDirectories=[/data/app/JHS.MVBarcodeScanner-QQjtbnuAcyHQKQ2ii82F8A==/lib/arm64, /system/lib64, /system/vendor/lib64]]
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
** Activity (main) Resume **

I understand this class is missing: android.support.v7.app.AppCompatActivity

but from where the discharge?
 
Top