bug如下,导个高德地图依赖jar包把原来的项目都跑不起来了,毕设进度捉急。。。。这个bug搞我一上午,就离谱
Duplicate class androidx.viewpager.widget.ViewPager$SavedState found in modules jetified-android-support-v4.jar (android-support-v4.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$SavedState$1 found in modules jetified-android-support-v4.jar (android-support-v4.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$SimpleOnPageChangeListener found in modules jetified-android-support-v4.jar (android-support-v4.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
Duplicate class androidx.viewpager.widget.ViewPager$ViewPositionComparator found in modules jetified-android-support-v4.jar (android-support-v4.jar) and viewpager-1.0.0-runtime.jar (androidx.viewpager:viewpager:1.0.0)
我反复改我的依赖,就是不知道错哪了
结局办法如下:
1.找到存放高德地图libs目录
2.删除android-support-v4包,用自己项目的androidx包,这样就不会build失败。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)