0

I have a strange issue.I developed an android application with scan functionality.I reused some zxing code code for the scanning section. My app is working fine for all the device and emulater too.But after I uploaded it in market I am getting error on scan portion.My error report is

java.lang.IllegalStateException: Could not execute method of the activity
at android.view.View$1.onClick(View.java:2191)
at android.view.View.performClick(View.java:2532)
at android.view.View$PerformClick.run(View.java:9291)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:150)
at android.app.ActivityThread.main(ActivityThread.java:4293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at android.view.View$1.onClick(View.java:2186)
... 11 more
Caused by: java.lang.ExceptionInInitializerError
at com.imotiva.Menu1.points(Menu1.java:46)
... 14 more
Caused by: java.lang.NoClassDefFoundError: com.qr.decoding.ResultMetadataType
at com.qr.scanning.CaptureActivity.<clinit>(CaptureActivity.java:92)
... 15 more

Still my code code is working in device but the same app in the market don't. Please help me friends...

sarath
  • 3,181
  • 7
  • 36
  • 58
  • 2
    Did you add you activity in manifest.xml – Aerrow Jul 23 '12 at 12:04
  • 1
    http://stackoverflow.com/a/10046725/1289716 – MAC Jul 23 '12 at 12:05
  • @sarath is there zxing application install in your device? if yes then uninstall that application and recheck your code. – rajpara Jul 23 '12 at 12:11
  • may be its because you have zxing installed on your device, it worked well – Archie.bpgc Jul 23 '12 at 12:12
  • @ Android Coader..Yes I uninstald barcode scanner app.Then also I am getting error. But my local app with same code of market app is working fine – sarath Jul 23 '12 at 12:15
  • 1
    @gtumca-MAC....Sarath's error report is not mentioning about any jar and his localcode is working well for all device means???..The uploaded app only have the problem. – i leaf Jul 23 '12 at 12:21
  • @gtumca-MAC...I am not using any external jars.. – i leaf Jul 23 '12 at 12:25
  • sometimes, a good software crash, it's because of the hardware.you see it easily when your app is installed on thousands devices.if the bug appear on a few devices and not on the other, it's not because of your app. – VinceFR Jul 23 '12 at 12:27
  • @VinceFR...Same device my local app working but market uploaded app is not.. – i leaf Jul 23 '12 at 12:28
  • @sarath local app worked in device without zxing , right ?? just for conformation. – rajpara Jul 23 '12 at 12:31
  • @AndroidCoader...I cracked zing code and using the codes in my package...local app is working fine..market app only crashes – sarath Jul 23 '12 at 12:36
  • You're missing com.qr.decoding class in your APK – CSmith Jul 23 '12 at 12:39
  • @CSmith..com.qr.decoding is a package. – sarath Jul 23 '12 at 12:41
  • Is there a difference in the build of the local and updated app? Stretching here... – Aviral Jul 23 '12 at 14:10
  • @gtumca-MAC....pls post your reply as answer then only i can accept your reply as my solution – sarath Jul 24 '12 at 04:38

1 Answers1

0

At last I found the solution for my problem.gtumca-MAC's solution Android update 17 seems incompatible with external Jars worked for me.Created one folder named libs and add my core.jar .Now it's working fine.Thanks all.

Community
  • 1
  • 1
sarath
  • 3,181
  • 7
  • 36
  • 58