---
schema_version: "1"
id: 1f055a3ecfa1905f0aac2a849b28d9ca6c596ec37f458aa9d345e0e1fb65ed3f
title: Error Using the Salesforce Mobile SDK with the
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/service_sdk_android/android_exclude_sfsdk.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.service_sdk_android.meta/service_sdk_android/android_exclude_sfsdk.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 02ef59389d4137dec06e465db57bac3ae77113b34217d6d6aae4e2a642c99f69
description: 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.
---
# 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:

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'
}