我需要发布我的应用程序,我运行了 Eclipse 导出向导并导出了带有自签名证书的签名 apk,我还运行了 zipalign 工具。问题是在设备上安装这个包并运行它时,它直接崩溃,虽然我可以直接从 eclipse 运行应用程序没有问题。这与proguard配置或其他任何东西有关吗?!
更新:问题来自proguard配置文件,这是异常的堆栈跟踪:
01-28 17:49:03.510: E/AndroidRuntime(14897): FATAL EXCEPTION: main
01-28 17:49:03.510: E/AndroidRuntime(14897): java.lang.ExceptionInInitializerError
01-28 17:49:03.510: E/AndroidRuntime(14897): at com.actionbarsherlock.app.SherlockActivity.c(Unknown Source)
01-28 17:49:03.510: E/AndroidRuntime(14897): at com.actionbarsherlock.app.SherlockActivity.onPostCreate(Unknown Source)
01-28 17:49:03.510: E/AndroidRuntime(14897): at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1115)
01-28 17:49:03.510: E/AndroidRuntime(14897): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1950)
01-28 17:49:03.510: E/AndroidRuntime(14897): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
01-28 17:49:03.510: E/AndroidRuntime(14897): at android.app.ActivityThread.access$600(ActivityThread.java:127)
01-28 17:49:03.510: E/AndroidRuntime(14897): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
01-28 17:49:03.510: E/AndroidRuntime(14897): at android.os.Handler.dispatchMessage(Handler.java:99)
01-28 17:49:03.510: E/AndroidRuntime(14897): at android.os.Looper.loop(Looper.java:137)
01-28 17:49:03.510: E/AndroidRuntime(14897): at android.app.ActivityThread.main(ActivityThread.java:4511)
01-28 17:49:03.510: E/AndroidRuntime(14897): at java.lang.reflect.Method.invokeNative(Native Method)
01-28 17:49:03.510: E/AndroidRuntime(14897): at java.lang.reflect.Method.invoke(Method.java:511)
01-28 17:49:03.510: E/AndroidRuntime(14897): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
01-28 17:49:03.510: E/AndroidRuntime(14897): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
01-28 17:49:03.510: E/AndroidRuntime(14897): at dalvik.system.NativeStart.main(Native Method)
01-28 17:49:03.510: E/AndroidRuntime(14897): Caused by: java.lang.IllegalArgumentException: Class a is not annotated with @Implementation
01-28 17:49:03.510: E/AndroidRuntime(14897): at com.actionbarsherlock.a.a(Unknown Source)
01-28 17:49:03.510: E/AndroidRuntime(14897): at com.actionbarsherlock.a.<clinit>(Unknown Source)