1

按照设置许可“将 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
4

1 回答 1

0

正如日志猫所说,有两个不同版本的支持库。请将项目中的 android-support-v4.jar 库替换为库项目中的 android-support-v4.jar 文件,这样您的项目和依赖库项目中将拥有相同版本的兼容库文件。为此,在 Package Explorer 中

  • 转到库项目的 libs 文件夹 --> 右键单击​​ android-support-v4.jar --> 选择“复制”
  • 转到您的项目->右键单击libs文件夹->选择“粘贴”->单击“是”以覆盖现有文件。
  • 清理你的项目
于 2013-02-12T01:05:36.820 回答