当项目中需要引入库文件时报错:
<span style="white-space:pre"> </span>[2015-05-04 08:55:48 - GooglePlay] Versions found are:
[2015-05-04 08:55:48 - GooglePlay] Path: C:\Users\qbc\Desktop\itcast3\day01\workspace\GooglePlay\libs\android-support-v4.jar
[2015-05-04 08:55:48 - GooglePlay] Length: 385685
[2015-05-04 08:55:48 - GooglePlay] SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
[2015-05-04 08:55:48 - GooglePlay] Path: C:\Users\qbc\Desktop\itcast3\day01\workspace\android-support-v7-appcompat\libs\android-support-v4.jar
[2015-05-04 08:55:48 - GooglePlay] Length: 627582
[2015-05-04 08:55:48 - GooglePlay] SHA-1: db0f122c99ef9f90dbab3fada6d191f2880cbb8e
[2015-05-04 08:55:48 - GooglePlay] Jar mismatch! Fix your dependencies
表示路径: C:\Users\qbc\Desktop\itcast3\day01\workspace\GooglePlay\libs\android-support-v4.jar下的support-v4的jar包
和路径:C:\Users\qbc\Desktop\itcast3\day01\workspace\android-support-v7-appcompat\libs\android-support-v4.jar下的support-v4的jar不是同一个,这里是根据文件的
SHA-1值来进行判断的。
解决方案:
删除一个support-v4的jar包即可。