Eclipse 工程多个不同版本 support-v4 的问题

Bugtags-Android-Eclipse-Lib 的 libs 文件夹中带了一个 android-support-v4.jar,有可能会与要植入的 app 的工程中的 android-support-v4.jar 包冲突,导致运行时出现下面错误:

10-14 14:26:19.427: E/AndroidRuntime(6547): java.lang.NoClassDefFoundError: com.bugtags.library.activity.a
10-14 14:26:19.427: E/AndroidRuntime(6547): at com.bugtags.library.issue.log.g.c(Unknown Source)
10-14 14:26:19.427: E/AndroidRuntime(6547): at com.bugtags.library.issue.log.g.b(Unknown Source)
10-14 14:26:19.427: E/AndroidRuntime(6547): at com.bugtags.library.hock.a.b(Unknown Source)
10-14 14:26:19.427: E/AndroidRuntime(6547): at com.bugtags.library.Bugtags.onResume(Unknown Source)
10-14 14:26:19.427: E/AndroidRuntime(6547): at com.bugtags.demo.BaseActivity.onResume(BaseActivity.java:13)
10-14 14:26:19.427: E/AndroidRuntime(6547): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1185)

解决方案: 可以尝试把 Bugtags-Android-Eclipse-Libandroid-support-v4.jar 删除或者替换成要植入的 appandroid-support-v4.jar

评论