android中引入多个library时,出现如下问题:
[2015-04-30 14:21:06 - PullToRefresh_Sample] but not all the versions are identical (check is based on SHA-1 only at this time).
[2015-04-30 14:21:06 - PullToRefresh_Sample] All versions of the libraries must be the same at this time.
[2015-04-30 14:21:06 - PullToRefresh_Sample] Versions found are:
[2015-04-30 14:21:06 - PullToRefresh_Sample] Path: F:\Android\appcompat_v7\libs\android-support-v4.jar
[2015-04-30 14:21:06 - PullToRefresh_Sample] Length: 758727
[2015-04-30 14:21:06 - PullToRefresh_Sample] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[2015-04-30 14:21:06 - PullToRefresh_Sample] Path: F:\Android\pullToRefresh_libs\extras\PullToRefreshViewPager\libs\android-support-v4.jar
[2015-04-30 14:21:06 - PullToRefresh_Sample] Length: 349252
[2015-04-30 14:21:06 - PullToRefresh_Sample] SHA-1: 612846c9857077a039b533718f72db3bc041d389
[2015-04-30 14:21:06 - PullToRefresh_Sample] Path: F:\Android\PullToRefresh_Sample\libs\android-support-v4.jar
[2015-04-30 14:21:06 - PullToRefresh_Sample] Length: 349252
[2015-04-30 14:21:06 - PullToRefresh_Sample] SHA-1: 612846c9857077a039b533718f72db3bc041d389
[2015-04-30 14:21:06 - PullToRefresh_Sample] Path: F:\Android\pullToRefresh_libs\extras\PullToRefreshListFragment\libs\android-support-v4.jar
[2015-04-30 14:21:06 - PullToRefresh_Sample] Length: 758727
[2015-04-30 14:21:06 - PullToRefresh_Sample] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507
[2015-04-30 14:21:06 - PullToRefresh_Sample] Jar mismatch! Fix your dependencies
出现该问题的原因是:
依赖关系列表中发现多个不同的android-support-v4.jar 4版本。
解决:
将所有依赖库的libs目录下android-support-v4.jar更换为主项目目录下的android-support-v4.jar即可。