在项目中有个v4包,但是引入了PagerSlidingTabStrip library,由于PagerSlidingTabStrip已经引入了v4包导致出现错误,错误日记:
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: F:\sy\googleplay\libs\android-support-v4.jar
Length: 621451
SHA-1: 5896b0a4e377ac4242eb2bc785220c1c4fc052f4
Path: F:\sy\PagerSlidingTabStrip\libs\android-support-v4.jar
Length: 648327
SHA-1: ded9acc6a9792b8f1afc470f0c9cd36d178914cd
Jar mismatch! Fix your dependencies意思是说2个相同的包,但是version不同,导致出现,解决办法很简单,就是把其中一个v4包删除就行
本文详细介绍了在Android项目中遇到的不同版本的v4包依赖冲突问题,并提供了简单的解决方案。通过分析错误日志,发现两个相同的包版本不同导致的jar文件不匹配问题。解决办法是删除其中一个v4包,确保所有依赖项版本一致,避免运行时错误。
2657

被折叠的 条评论
为什么被折叠?



