tencentyun / image-java-sdk-v2.0

83 stars 73 forks source link

直接使用release 的 jar 集成到react-native 提示重复引用class #8

Open banli17 opened 6 years ago

banli17 commented 6 years ago
Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: 
duplicate entry: com/qcloud/image/ClientConfig.class

总是报上面类似的错误。react-native中没有使用其它库,是纯净的。

请问如何解决呢。google了一番,也没找到方法。

dependencies {
    compile 'com.facebook.react:react-native:+'
    compile files('libs/qcloud-sdk-2.2.7-jar-with-dependencies.jar')
}
banli17 commented 6 years ago

一个个引用jar,解决了。最近我准备将它集成到rn中, react-native-cloud-image