作者:mobiledu2502885407 | 来源:互联网 | 2023-07-18 15:03
ImtryingtousethebarcodescannerpluginforPhoneGap.Ivefollowedtheinstructionsintherea
I'm trying to use the barcode scanner plugin for PhoneGap. I've followed the instructions in the readme, but the PhoneGap app simply crashes when I call window.plugins.barcodeScanner.scan()
:
我正在尝试使用PhoneGap的条形码扫描程序插件。我按照自述文件中的说明进行操作,但是当我调用window.plugins.barcodeScanner.scan()时,PhoneGap应用程序只会崩溃:
E/AndroidRuntime(15842): java.lang.RuntimeException: Unable to instantiate
activity ComponentInfo{mypackage/com.google.zxing.client.android.CaptureActivity}:
java.lang.ClassNotFoundException: com.google.zxing.client.android.CaptureActivity
I suspect this has something to do with the fact that after I add a reference to the plugin's LibraryProject, it doesn't actually stick. When I go to my project's properties, Android, I can add a reference to the BarcodeScanner\LibraryProject:
我怀疑这与我添加对插件的LibraryProject的引用之后的事实有关,它实际上并没有坚持。当我转到项目的属性Android时,我可以添加对BarcodeScanner \ LibraryProject的引用:
But after I click Apply and OK and then reopen the project's properties, the reference has a red X:
但是在我单击“应用”和“确定”然后重新打开项目的属性后,引用具有红色X:
What's going on here?
这里发生了什么?
3 个解决方案