一、在Android開發中,會遇到包名不一致的狀況,以下所示android
[2015-11-21 11:56:03 - test] Found 2 versions of android-support-v4.jar in the dependency list,
[2015-11-21 11:56:03 - test] but not all the versions are identical (check is based on SHA-1 only at this time).
[2015-11-21 11:56:03 - test] All versions of the libraries must be the same at this time.
[2015-11-21 11:56:03 - test] Versions found are:
[2015-11-21 11:56:03 - test] Path: D:\workspace\test\libs\android-support-v4.jar
[2015-11-21 11:56:03 - test] Length: 627582
[2015-11-21 11:56:03 - test] SHA-1: db0f122c99ef9f90dbab3fada6d191f2880cbb8e
[2015-11-21 11:56:03 - test] Path: D:\workspace\library\libs\android-support-v4.jar
[2015-11-21 11:56:03 - test] Length: 385685
[2015-11-21 11:56:03 - test] SHA-1: 48c94ae70fa65718b382098237806a5909bb096e
[2015-11-21 11:56:03 - test] Jar mismatch! Fix your dependencies
分析 :有2個v4的jar包
解放方案 :直接覆蓋v4jar,就是保持 兩個包同樣, 就是保證引用類庫的v4包與lib文件下的包一致。