按照Setting up for licensing“将LVL创建为库项目”中的说明进行操作。“
我按照非常模糊的说明创建了库项目,因为我已经在SDK管理器中安装了LVL库。粘贴在下面的控制台日志(很难将东西粘贴到SO中)抱怨(我认为)两个android-support-v4.jar文件(我的项目中的一个和我的libs项目中的另一个)不匹配。
此外,我所有GSON的导入都无效,导致数十个错误。
我的目标是姜饼2.33。
造成所有这些损害的原因是什么?
2013-02-11 17:30:22 - com.deanblakely.PSActivity] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-02-11 17:30:22 - com.deanblakely.PSActivity] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-02-11 17:30:22 - com.deanblakely.PSActivity] All versions of the libraries must be the same at this time.
[2013-02-11 17:30:22 - com.deanblakely.PSActivity] Versions found are:
[2013-02-11 17:30:22 - com.deanblakely.PSActivity] Path: D:\_DBAWorkspace\LVLLib\libs\android-support-v4.jar
[2013-02-11 17:30:22 - com.deanblakely.PSActivity] Length: 385685
[2013-02-11 17:30:22 - com.deanblakely.PSActivity] SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
[2013-02-11 17:30:22 - com.deanblakely.PSActivity] Path: D:\_DBAWorkspace\com.deanblakely.PSActivity\libs\android-support-v4.jar
[2013-02-11 17:30:22 - com.deanblakely.PSActivity] Length: 349252
[2013-02-11 17:30:22 - com.deanblakely.PSActivity] SHA-1: 612846c9857077a039b533718f72db3bc041d389
[2013-02-11 17:30:22 - com.deanblakely.PSActivity] Jar mismatch! Fix your dependencies
[2013-02-11 17:30:25 - com.deanblakely.PSActivity] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-02-11 17:30:25 - com.deanblakely.PSActivity] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-02-11 17:30:25 - com.deanblakely.PSActivity] All versions of the libraries must be the same at this time.
[2013-02-11 17:30:25 - com.deanblakely.PSActivity] Versions found are:
[2013-02-11 17:30:25 - com.deanblakely.PSActivity] Path: D:\_DBAWorkspace\LVLLib\libs\android-support-v4.jar
[2013-02-11 17:30:25 - com.deanblakely.PSActivity] Length: 385685
[2013-02-11 17:30:25 - com.deanblakely.PSActivity] SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
[2013-02-11 17:30:25 - com.deanblakely.PSActivity] Path: D:\_DBAWorkspace\com.deanblakely.PSActivity\libs\android-support-v4.jar
[2013-02-11 17:30:25 - com.deanblakely.PSActivity] Length: 349252
[2013-02-11 17:30:25 - com.deanblakely.PSActivity] SHA-1: 612846c9857077a039b533718f72db3bc041d389
[2013-02-11 17:30:25 - com.deanblakely.PSActivity] Jar mismatch! Fix your dependencies
[2013-02-11 17:34:32 - com.deanblakely.PSActivity] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-02-11 17:34:32 - com.deanblakely.PSActivity] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-02-11 17:34:32 - com.deanblakely.PSActivity] All versions of the libraries must be the same at this time.
[2013-02-11 17:34:32 - com.deanblakely.PSActivity] Versions found are:
[2013-02-11 17:34:32 - com.deanblakely.PSActivity] Path: D:\_DBAWorkspace\LVLLib\libs\android-support-v4.jar
[2013-02-11 17:34:32 - com.deanblakely.PSActivity] Length: 385685
[2013-02-11 17:34:32 - com.deanblakely.PSActivity] SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
[2013-02-11 17:34:32 - com.deanblakely.PSActivity] Path: D:\_DBAWorkspace\com.deanblakely.PSActivity\libs\android-support-v4.jar
[2013-02-11 17:34:32 - com.deanblakely.PSActivity] Length: 349252
[2013-02-11 17:34:32 - com.deanblakely.PSActivity] SHA-1: 612846c9857077a039b533718f72db3bc041d389
[2013-02-11 17:34:32 - com.deanblakely.PSActivity] Jar mismatch! Fix your dependencies
答案 0 :(得分:0)
正如日志猫所说,支持库有两种不同版本。请使用来自库项目的android-support-v4.jar文件从项目中替换android-support-v4.jar库,这样您将在项目和依赖库项目中拥有相同版本的兼容库文件。为此,在包资源管理器中 :