If you're trying to build a Service Chat SDK project that explicitly embeds the
Salesforce Mobile SDK, exclude these two maven dependencies to prevent conflicts.
When building an app with both SDKs, you may encounter an error such as this error:
Error: more than one library with package name 'com.salesforce.androidsdk.analytics'
Or this error:
Duplicate zip entry [classes.jar:com/salesforce/androidsdk/smartstore/app/SmartStoreSDKManager.class]
To solve the problem, exclude the problematic dependencies from your build.gradle file.
compile('com.salesforce.service:servicesdk:224.2.6') { exclude group: 'com.salesforce.mobilesdk', module: 'SmartStore' exclude group: 'com.salesforce.mobilesdk', module: 'SalesforceSDK' }