我试图将示例facebook sdk项目导入eclipse,并且除了Hackbook之外的所有项目都会出现此错误。
Found 2 versions of android-support-v4.jar in the dependency list,
but not all the versions are identical (check is based on SHA-1 only at this time).
All versions of the libraries must be the same at this time.
Versions found are:
Path: C:\Program Files\facebook-android-sdk-3.0.2\facebook\libs\android-support-v4.jar
Length: 349252
SHA-1: 612846c9857077a039b533718f72db3bc041d389
Path: C:\Program Files\facebook-android-sdk-3.0.2\libs\android-support-v4.jar
Length: 556198
SHA-1: 4a6be13368bb64c5a0b0460632d228a1a915f58f
Jar mismatch! Fix your dependencies
无论如何我可以从构建路径中删除其中一个吗?我已经尝试了Build Path>配置构建路径来删除第二个jar文件,但是在我关闭窗口后它再次出现。
答案 0 :(得分:1)
你可以简单地复制一个(例如C:\ Program Files \ facebook-android-sdk-3.0.2 \ facebook \ libs \ android-support-v4.jar)替换另一个(C:\ Program Files \ facebook) -android-sdk-3.0.2 \ libs \ android-support-v4.jar)所以你有相同版本的库