1 问题
App中同时集成了阿里云移动推送和友盟推送,编译时发生类冲突,出现类似下文的错误信息:
- [backcolor=transparent]Error[backcolor=transparent]:[backcolor=transparent]Execution[backcolor=transparent] failed [backcolor=transparent]for[backcolor=transparent] task [backcolor=transparent]':app:transformClassesWithJarMergingForDebug'[backcolor=transparent].
- [backcolor=transparent]com[backcolor=transparent].[backcolor=transparent]android[backcolor=transparent].[backcolor=transparent]build[backcolor=transparent].[backcolor=transparent]api[backcolor=transparent].[backcolor=transparent]transform[backcolor=transparent].[backcolor=transparent]TransformException[backcolor=transparent]:[backcolor=transparent] java[backcolor=transparent].[backcolor=transparent]util[backcolor=transparent].[backcolor=transparent]zip[backcolor=transparent].[backcolor=transparent]ZipException[backcolor=transparent]:[backcolor=transparent] duplicate entry[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]*****
2 解决方案
友盟和阿里云共享阿里巴巴的移动基础生态,友盟推送和阿里云移动推送也同时集成了阿里的基础移动组件,暂时没有办法共同集成,建议分别集成,然后进行A/B Test。