导入环信Demo之'Execution failed for task 'apptransformClassesWithJarMergingForDebug'
来源:互联网 发布:智能数据盒子 编辑:程序博客网 时间:2024/05/16 09:12
Language:Java
IDE:Android studio
导入环信Demo,出现’Execution failed for task ‘apptransformClassesWithJarMergingForDebug’
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
Error:Execution failed for task ‘:app:transformClassesWithJarMergingForDebug’.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/annotation/ArrayRes.class
Error:Execution failed for task ‘:app:transformClassesWithJarMergingForDebug’.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/android/volley/ServerError.class
——————- 我是分割线—————————–
原因:在所添加的jar包或aar包中也引用了support-V4,与工程中引用的相冲突
Ctrl+N –> 在搜索框中输入BackStackState –> 查找到所有引用该类的类,这些类即为引起冲突的类
去掉本工程中gradle中用于引用有冲突的包的代码或者将冲突的代码从jar包或aar包中移除,确保一个module中只引用了一份相同的第三方包
摘自:http://www.cnblogs.com/royi123/p/5378056.html(第2段)
- 导入环信Demo之'Execution failed for task 'apptransformClassesWithJarMergingForDebug'
- 微信支付官方demo报Error:Execution failed for task ':app:mergeDebugResources'.
- Execution failed for task ': :dexDebug'
- Execution failed for task ':dexDebug'
- Execution failed for task :mergeDebugResources
- Android错误之:Error:Execution failed for task ':app:mergeDebugResources'.
- Android异常之Error:Execution failed for task ':app:transformClassesWithInstantRunSlicerForDebug'.
- AndroidStudio之Error:Execution failed for task ':app:mergeProdDebugResources'.
- 错误之-Error:Execution failed for task ':app:mergeDebugResources'
- 导入Module运行出现问Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed;
- Error:Execution failed for task ':demo:packageRelease'. > Unable to compute hash of 路径\classes.jar
- Error:Execution failed for task ':app:dexDebug'.
- Execution failed for task ':app:dexDebug'.
- Error:Execution failed for task ':app:compileDebugAidl'.
- Execution failed for task ':app:compileDebugNdk'
- Error:Execution failed for task ':app:packageDebug'.
- Error:Execution failed for task ':app:dexDebug'.
- Error:Execution failed for task ':asynctask:packageDebug'
- 排序法之冒泡排序法
- ScrollView嵌套listView
- 各种滤波算法的比较
- 安卓适配之终极方案,百分比适配
- arguments的说明
- 导入环信Demo之'Execution failed for task 'apptransformClassesWithJarMergingForDebug'
- Oracle如何修改系统默认时间格式
- BZOJ2763: [JLOI2011]飞行路线
- 冒泡法实现链表排序
- NOIP模拟题 [LIS][建图][递推][容斥]
- 邮件服务器
- python try/except/finally
- RecyclerView的列表布局中match_parent失效的解决方法
- 获取mysql数据库中的自增主键属性值和非自增主键属性值的方法