签名apk没有找到类

时间:2013-07-16 04:33:12

标签: android apk noclassdeffounderror

如果我只使用真实设备运行eclipse,我的应用程序工作正常。但是,一旦我创建了一个签名的apk,apk就会引发关于java.lang.NoClassDefFoundError的异常。基本上,它加载主要活动很好。但是当我单击一个按钮来加载第二个活动时,它会抛出异常。

这是例外。再次,签名后apk不起作用。否则,apk工作正常。不,我没有激活proguard。

07-15 21:24:10.307: E/ACDB-LOADER(223): Error: ACDB AudProc vol returned = -8
07-15 21:24:10.317: W/dalvikvm(19205): threadid=1: thread exiting with uncaught exception (group=0x41b0aac8)
07-15 21:24:10.327: E/AndroidRuntime(19205): FATAL EXCEPTION: main
07-15 21:24:10.327: E/AndroidRuntime(19205): java.lang.IllegalStateException: Could not execute method of the activity
07-15 21:24:10.327: E/AndroidRuntime(19205):    at android.view.View$1.onClick(View.java:3735)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at android.view.View.performClick(View.java:4354)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at android.view.View$PerformClick.run(View.java:17961)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at android.os.Handler.handleCallback(Handler.java:725)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at android.os.Handler.dispatchMessage(Handler.java:92)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at android.os.Looper.loop(Looper.java:137)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at android.app.ActivityThread.main(ActivityThread.java:5328)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at java.lang.reflect.Method.invokeNative(Native Method)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at java.lang.reflect.Method.invoke(Method.java:511)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at dalvik.system.NativeStart.main(Native Method)
07-15 21:24:10.327: E/AndroidRuntime(19205): Caused by: java.lang.reflect.InvocationTargetException
07-15 21:24:10.327: E/AndroidRuntime(19205):    at java.lang.reflect.Method.invokeNative(Native Method)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at java.lang.reflect.Method.invoke(Method.java:511)
07-15 21:24:10.327: E/AndroidRuntime(19205):    at android.view.View$1.onClick(View.java:3730)
07-15 21:24:10.327: E/AndroidRuntime(19205):    ... 11 more
07-15 21:24:10.327: E/AndroidRuntime(19205): Caused by: java.lang.NoClassDefFoundError: com.company.game.LoginActivity
07-15 21:24:10.327: E/AndroidRuntime(19205):    at com.company.game.WelcomeActivity.dispatchLoginActivity(WelcomeActivity.java:88)
07-15 21:24:10.327: E/AndroidRuntime(19205):    ... 14 more

编辑:

这也可能会有所帮助:当它是签名的apk时,该应用的application部分LogCat为空。

0 个答案:

没有答案