我正嘗試安裝斑馬線QR捕獲應用程序進行測試,但I'm得到的錯誤:Android的斑馬線QR捕捉
07-26 20:15:22.667: E/AndroidRuntime(29355): FATAL EXCEPTION: main
07-26 20:15:22.667: E/AndroidRuntime(29355): java.lang.ExceptionInInitializerError
07-26 20:15:22.667: E/AndroidRuntime(29355): at java.lang.Class.newInstanceImpl(Native Method)
07-26 20:15:22.667: E/AndroidRuntime(29355): at java.lang.Class.newInstance(Class.java:1319)
07-26 20:15:22.667: E/AndroidRuntime(29355): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
07-26 20:15:22.667: E/AndroidRuntime(29355): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1882)
07-26 20:15:22.667: E/AndroidRuntime(29355): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
07-26 20:15:22.667: E/AndroidRuntime(29355): at android.app.ActivityThread.access$600(ActivityThread.java:127)
07-26 20:15:22.667: E/AndroidRuntime(29355): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
07-26 20:15:22.667: E/AndroidRuntime(29355): at android.os.Handler.dispatchMessage(Handler.java:99)
07-26 20:15:22.667: E/AndroidRuntime(29355): at android.os.Looper.loop(Looper.java:137)
07-26 20:15:22.667: E/AndroidRuntime(29355): at android.app.ActivityThread.main(ActivityThread.java:4441)
07-26 20:15:22.667: E/AndroidRuntime(29355): at java.lang.reflect.Method.invokeNative(Native Method)
07-26 20:15:22.667: E/AndroidRuntime(29355): at java.lang.reflect.Method.invoke(Method.java:511)
07-26 20:15:22.667: E/AndroidRuntime(29355): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
07-26 20:15:22.667: E/AndroidRuntime(29355): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
07-26 20:15:22.667: E/AndroidRuntime(29355): at dalvik.system.NativeStart.main(Native Method)
07-26 20:15:22.667: E/AndroidRuntime(29355): Caused by: java.lang.NoClassDefFoundError: com.google.zxing.ResultMetadataType
07-26 20:15:22.667: E/AndroidRuntime(29355): at com.google.zxing.client.android.CaptureActivity.<clinit>(CaptureActivity.java:107)
07-26 20:15:22.667: E/AndroidRuntime(29355): ... 15 more
一些想法?
你在測試什麼?如果您只想測試一些QR碼,然後從Google Play安裝Android的Zxing項目參考實施:條形碼掃描儀 – 2012-07-26 19:23:41
您的代碼在哪裏? – 2012-07-26 19:41:22