Hello Max,
We are trying to integrate the demo app in our project to test the functionality. We have included the .aar file in the project and build is successful. However on running the application there is error which is :-
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/gson/annotations/Expose.class
We are using retrofit library for network calls that uses the gson library, it's gradle dependency is :-
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
I am attaching the build.gradle for your reference.
We have tried these 2 options but it does not work :-
a)
compile project(':wcs-android-sdk-1.0.1.29'){
exclude group:'com.google.code.gson', module:'gson'}
b)
compile project(':wcs-android-sdk-1.0.1.29'){
transitive = true;
exclude module: 'gson'}
We are trying to integrate the demo app in our project to test the functionality. We have included the .aar file in the project and build is successful. However on running the application there is error which is :-
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/gson/annotations/Expose.class
We are using retrofit library for network calls that uses the gson library, it's gradle dependency is :-
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
I am attaching the build.gradle for your reference.
We have tried these 2 options but it does not work :-
a)
compile project(':wcs-android-sdk-1.0.1.29'){
exclude group:'com.google.code.gson', module:'gson'}
b)
compile project(':wcs-android-sdk-1.0.1.29'){
transitive = true;
exclude module: 'gson'}
Attachments
-
2.7 KB Views: 286
-
622 bytes Views: 262