首页 > 移动平台 > 详细

app:transformClassesWithJarMergingForDebug uplicate entry: android/support/v4/app/BackStackState$1.class

时间:2016-04-14 11:52:52      阅读:200      评论:0      收藏:0      [点我收藏+]
.Execution failed for task ‘:app:transformClassesWithJarMergingForDebug‘.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/app/BackStackState$1.class


原因:在所添加的jar包或aar包中也引用了support-V4,与工程中引用的相冲突
Ctrl+N --> 在搜索框中输入BackStackState --> 查找到所有引用该类的类,这些类即为引起冲突的类
去掉本工程中gradle中用于引用有冲突的包的代码或者将冲突的代码从jar包或aar包中移除,确保一个module中只引用了一份相同的第三方包

app:transformClassesWithJarMergingForDebug uplicate entry: android/support/v4/app/BackStackState$1.class

原文:http://www.cnblogs.com/ldq2016/p/5390262.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!