我正在开发一个以ActionBarSherlock和FacebookSdk作为依赖项的项目。在将库添加到项目中时,存在jar不匹配,因为它们都包含android-support-v4.jar。
Found 2 versions of android-support-v4.jar in the dependency list,
[2015-02-19 21:57:08 - privly-android] but not all the versions are identical (check is based on SHA-1 only at this time).
[2015-02-19 21:57:08 - privly-android] All versions of the libraries must be the same at this time.
[2015-02-19 21:57:08 - privly-android] Versions found are:
[2015-02-19 21:57:08 - privly-android] Path: /home/privly-android/dependencies/actionbarsherlock/libs/android-support-v4.jar
[2015-02-19 21:57:08 - privly-android] Length: 648327
[2015-02-19 21:57:08 - privly-android] SHA-1: ded9acc6a9792b8f1afc470f0c9cd36d178914cd
[2015-02-19 21:57:08 - privly-android] Path: /home/privly-android/dependencies/facebook/libs/android-support-v4.jar
[2015-02-19 21:57:08 - privly-android] Length: 987314
[2015-02-19 21:57:08 - privly-android] SHA-1: 3b20dc871d179ba476082efe543dc1b38db46e30
[2015-02-19 21:57:08 - privly-android] Jar mismatch! Fix your dependencies
答案 0 :(得分:0)
从您的错误日志All versions of the libraries must be the same at this time.
中可以看出,两者都需要相同。
在两个sdk中复制相同的android-support-v4.jar
,它会起作用。