You need to sign in to do that
Don't have an account?
Raymond Muiselaar
okhttp3
Hi,
After adding the snap-in sdk to the android project and trying to run the application I receive the following error.
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: okhttp3/internal/ws/RealWebSocket$1.class
Project was cleaned, cache invalidated but with no result.
Android project is part of a solution using react-native.
After adding the snap-in sdk to the android project and trying to run the application I receive the following error.
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: okhttp3/internal/ws/RealWebSocket$1.class
Project was cleaned, cache invalidated but with no result.
Android project is part of a solution using react-native.
It sounds like the okhttp dependency is being included twice. You should be able to exclude the conflicting dependency to resolve the issue.
compile('com.salesforce.service:servicesdk:208.0.0') {
exclude group: 'com.squareup.okhttp3',module: 'okhttp'
}
In the future consider posting your snapins questions on the google+ page linked below. It is maintained and monitored by the snapins team.
https://plus.google.com/u/0/communities/104189600084591024148/stream/2cb9f7c2-1953-40f1-b94b-734ab703ca58
All Answers
It sounds like the okhttp dependency is being included twice. You should be able to exclude the conflicting dependency to resolve the issue.
compile('com.salesforce.service:servicesdk:208.0.0') {
exclude group: 'com.squareup.okhttp3',module: 'okhttp'
}
In the future consider posting your snapins questions on the google+ page linked below. It is maintained and monitored by the snapins team.
https://plus.google.com/u/0/communities/104189600084591024148/stream/2cb9f7c2-1953-40f1-b94b-734ab703ca58
Thanks a lot!
Previously I was only excluding the group, adding the module part made it 'magically' work.
And also thanks for your google+ page link.