|
/

Android 集成apm sdk后再集成阿里云sdk 打包apk时会起冲突

Xxsh
发布于 5 年前
915476
应用性能监控 U-APM
SDK集成与升级

Android 项目集成 com.umeng.umsdk:apm:1.5.2 后,再集成 'com.aliyun.openservices:alysls-android-crashreporter:1.1.1' ,打包apk过程中会报 冲突错误

Duplicate class com.uc.crashsdk.JNIBridge found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.a found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.a.a found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.a.b found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.a.c found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.a.d found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.a.e found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.a.f found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.a.g found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.a.h found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.a.h$a found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.b found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.c found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.d found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.e found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.e$a found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.e$b found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.e$c found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.e$d found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.export.CrashApi found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.export.CrashStatKey found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.export.CustomInfo found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.export.CustomLogInfo found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.export.DumpFileInfo found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.export.ExitType found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.export.ICrashClient found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.export.LogType found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.export.VersionInfo found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.f found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

Duplicate class com.uc.crashsdk.g found in modules jetified-alysls-android-crashreporter-1.1.1-runtime (com.aliyun.openservices:alysls-android-crashreporter:1.1.1) and jetified-apm-1.5.2-runtime (com.umeng.umsdk:apm:1.5.2)

9个回答
 
5 年前

可用exclude来排除某些冲突包。

 
5 年前

能用阿里云的就用阿里云的,不能的话就剔除重复的jar包

 
5 年前

阿里云和友盟是同一战线的,所以难免会使用相同的公共的东西,需要你排查一下重复的内容删掉其中一个即可。

 
5 年前

两个库在项目中都需要用到吗,如果不是可以考虑删掉一个,或者只引用部分包。

 
5 年前

两家服务都是一个集团下的,底层会有一些公用的东西,选择其中一个集成就行。

 
5 年前

友盟也是用了阿里的一些库,想要一起集成,选择手动集成jar吧。

 
5 年前

1、先删除一个运行测试
2、再次集成第二个 看下冲突文件

 
5 年前

我遇到过,确实会起冲突。

建议用exclude来排除某些特定的包。

 
5 年前

楼主,建议你删除一个sdk再试试,听说集成2个会发生冲突

Loading ...
登录社区,分享你的经验