我尝试在我的Android应用程序中实现备份代理,每次恢复时(首次启动时)我都会遇到一个奇怪的问题:
Unable to resolve superclass of Lcom/actionbarsherlock/app/SherlockMapActivity; (916)
Link of class 'Lcom/actionbarsherlock/app/SherlockMapActivity;' failed
Unable to resolve superclass of Lnet/myapp/activity/impl/MapActivity; (674)
Link of class 'Lnet/myapp/activity/impl/MapActivity;' failed
Could not find class 'net.myapp.activity.impl.MapActivity', referenced from method net.myapp.helper.SlidingMenuHelper.<clinit>
VFY: unable to resolve const-class 1520 (Lnet/myapp/activity/impl/MapActivity;) in Lnet/myapp/helper/SlidingMenuHelper;
VFY: replacing opcode 0x1c at 0x0081
Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lnet/myapp/helper/SlidingMenuHelper;
完成日志:https://gist.github.com/romainguefveneu/1acc78cabbed65fba4b7
恢复过程工作正常,当我第二次打开应用程序时,我的数据被正确恢复 .
加载SherlockMapActivity似乎是个问题,我在项目中使用了所有这些库:
-
actionbarsherlock-plugin-maps-4.2.0.jar
-
bugsense-3.0.1.jar
-
commons-io-2.0.1.jar
-
gson-2.2.2.jar
-
joda-time-2.1.jar
-
ocpsoft-pretty-time-1.0.7.jar
有人有想法吗?