gpt4 book ai didi

android - Phonegap 的致命异常条码扫描器插件

转载 作者:行者123 更新时间:2023-11-29 22:15:47 25 4
gpt4 key购买 nike

我尝试了 Phonegap 和 Barcodescanner。

http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt3

“scanCode”点击链接。然后Android应用报错退出。

日志如下。怎么了。

> 12-13 10:55:32.486: E/AndroidRuntime(3726): FATAL EXCEPTION: main
> 12-13 10:55:32.486: E/AndroidRuntime(3726):
> java.lang.RuntimeException: Unable to instantiate activity
> ComponentInfo{com.myapp/com.google.zxing.client.android.encode.EncodeActivity}:
> java.lang.ClassNotFoundException:
> com.google.zxing.client.android.encode.EncodeActivity in loader
> dalvik.system.PathClassLoader[/data/app/com.myapp-1.apk] 12-13
> 10:55:32.486: E/AndroidRuntime(3726): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1608)
> 12-13 10:55:32.486: E/AndroidRuntime(3726): at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1702)
> 12-13 10:55:32.486: E/AndroidRuntime(3726): at
> android.app.ActivityThread.access$1500(ActivityThread.java:117) 12-13
> 10:55:32.486: E/AndroidRuntime(3726): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:949)
> 12-13 10:55:32.486: E/AndroidRuntime(3726): at
> android.os.Handler.dispatchMessage(Handler.java:99) 12-13
> 10:55:32.486: E/AndroidRuntime(3726): at
> android.os.Looper.loop(Looper.java:123) 12-13 10:55:32.486:
> E/AndroidRuntime(3726): at
> android.app.ActivityThread.main(ActivityThread.java:3728) 12-13
> 10:55:32.486: E/AndroidRuntime(3726): at
> java.lang.reflect.Method.invokeNative(Native Method) 12-13
> 10:55:32.486: E/AndroidRuntime(3726): at
> java.lang.reflect.Method.invoke(Method.java:507) 12-13 10:55:32.486:
> E/AndroidRuntime(3726): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
> 12-13 10:55:32.486: E/AndroidRuntime(3726): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622) 12-13
> 10:55:32.486: E/AndroidRuntime(3726): at
> dalvik.system.NativeStart.main(Native Method) 12-13 10:55:32.486:
> E/AndroidRuntime(3726): Caused by: java.lang.ClassNotFoundException:
> com.google.zxing.client.android.encode.EncodeActivity in loader
> dalvik.system.PathClassLoader[/data/app/com.myapp-1.apk] 12-13
> 10:55:32.486: E/AndroidRuntime(3726): at
> dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
> 12-13 10:55:32.486: E/AndroidRuntime(3726): at
> java.lang.ClassLoader.loadClass(ClassLoader.java:551) 12-13
> 10:55:32.486: E/AndroidRuntime(3726): at
> java.lang.ClassLoader.loadClass(ClassLoader.java:511) 12-13
> 10:55:32.486: E/AndroidRuntime(3726): at
> android.app.Instrumentation.newActivity(Instrumentation.java:1021)
> 12-13 10:55:32.486: E/AndroidRuntime(3726): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1600)
> 12-13 10:55:32.486: E/AndroidRuntime(3726): ... 11 more

最佳答案

听起来您没有正确设置库项目。这是我写的一篇关于正确设置的博文。

http://simonmacdonald.blogspot.com/2011/12/installing-barcode-plugin-for-phonegap.html

关于android - Phonegap 的致命异常条码扫描器插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8483481/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com