V4、V7包重复的问题

2016-09-04  本文已影响1022人  学渣罗小贱

关于V4、V7包重复的问题

以下错误都是V4包重复的问题

Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/app/FragmentTransaction.class

Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/app/FragmentTransaction.class

Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/annotation/StringRes.class

注:以上这些错误只需要把依赖库中的V4的compile删掉就可以解决

上一篇下一篇

猜你喜欢

热点阅读