Error Using the Salesforce Mobile SDK with the
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:
1Error: more than one library with package name 'com.salesforce.androidsdk.analytics'Or this error:
1Duplicate zip entry [classes.jar:com/salesforce/androidsdk/smartstore/app/SmartStoreSDKManager.class]To solve the problem, exclude the problematic dependencies from your build.gradle file.
1compile('com.salesforce.service:servicesdk:224.2.6')
2{
3 exclude group: 'com.salesforce.mobilesdk', module: 'SmartStore'
4 exclude group: 'com.salesforce.mobilesdk', module: 'SalesforceSDK'
5}