janalytics-react-native icon indicating copy to clipboard operation
janalytics-react-native copied to clipboard

Android 编译时报错:Program type already present: cn.jiguang.a.a

Open Riant opened this issue 5 years ago • 0 comments

React native: 0.63.3

我已经集成 jpush,jmessage 了,当我引入 janalytics 之后,打包时报错了:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDexDebug'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
     Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
     Program type already present: cn.jiguang.a.a

有什么办法解决吗?

谢谢。

Riant avatar Jan 27 '21 15:01 Riant