You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
titleSuffix: Azure Communication Services Calling and Chat SDK
3
+
ms.topic: how-to
4
+
titleSuffix: Azure Communication Services Calling SDK and Chat SDK
5
5
author: sanathr
6
-
title: Calling and Chat SDK in an Android application
6
+
title: Add the Calling and Chat SDKs in an Android application
7
7
ms.author: sanathr
8
8
ms.service: azure-communication-services
9
-
description: How to use both Calling and Chat SDK together in an Android application.
9
+
description: Learn how to use the Calling SDK and the Chat SDK together in an Android application.
10
10
---
11
-
# Add Calling and Chat SDK in an Android application
11
+
# Add the Calling and Chat SDKs in an Android application
12
12
13
-
This tutorial describes how Contoso can integrate both Calling and Chat SDK in an Android application.
13
+
This article describes how you can integrate the Azure Communication Services Calling SDK and Chat SDK in an Android application.
14
14
15
-
## Current limitation
15
+
## Problem
16
16
17
-
With Android Calling SDK versions earlier than `2.11.0`, building an Android application with both the Calling and Chat SDK's resulted in the following errors:
17
+
With versions of the Calling SDK earlier than 2.11.0, building an Android application with both the Calling and Chat SDKs resulted in the following errors:
18
18
19
19
```
20
20
Duplicate class com.skype.rt.XXX found in modules jetified-azure-communication-calling-1.2.0-runtime (com.azure.android:azure-communication-calling:1.2.0) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
21
21
22
22
2 files found with path 'lib/x86/libc++_shared.so' from inputs: - …\.gradle\...-azure-communication-calling-1.2.0\jni\x86\libc++_shared.so - …\.gradle\...-trouter-client-android-9.1.1\jni\x86\libc++_shared.so
23
23
```
24
24
25
-
This issue was caused because of the conflicting `.jar` and `.so` files included in the Calling SDK package `com.azure.android:azure-communication-calling` and a transitive dependency package that the Chat SDK package `com.azure.android:azure-communication-chat` imports, `com.microsoft:trouter-client-android`.
25
+
This problem had two causes:
26
+
27
+
- Conflicting `.jar` and `.so` files included in the Calling SDK package `com.azure.android:azure-communication-calling`
28
+
- A transitive dependency package that the Chat SDK package `com.azure.android:azure-communication-chat` imports, `com.microsoft:trouter-client-android`
26
29
27
30
## Solution
28
-
From Android Calling SDK version 2.11.0 onwards, Contoso can integrate both the Calling and Chat SDKs within the same Android application. This was accomplished by making the Calling SDK rely on com.microsoft:trouter-client-android, similar to the Chat SDK’s dependency on the Trouter package, and eliminating the conflicting .jar and .so files previously included in the Calling SDK.
29
31
30
-
## Implementation steps
32
+
From Calling SDK version 2.11.0 onward, you can integrate both the Calling and Chat SDKs within the same Android application. The 2.11.0 version solved the problem by:
33
+
34
+
- Eliminating the conflicting `.jar` and `.so` files.
35
+
- Making the Calling SDK rely on `com.microsoft:trouter-client-android`, similar to the Chat SDK's dependency on the Trouter package.
31
36
32
-
Specify the version of the Android Calling and Chat SDK in your application's Gradle build file as shown in the example:
37
+
## Implementation
38
+
39
+
Specify the version of the Calling and Chat SDKs for Android in your application's Gradle build file, as shown in this example:
@@ -38,7 +45,8 @@ Specify the version of the Android Calling and Chat SDK in your application's Gr
38
45
}
39
46
```
40
47
41
-
The version of `com.azure.android:azure-communication-chat` can be any version. The latest release version is used here as an example. However, the version of the Trouter package `com.microsoft:trouter-client-android` included with the Chat SDK `com.azure.android:azure-communication-chat` needs to be excluded. When the application is built, the Trouter package version included by the Calling SDK package `com.azure.android:azure-communication-calling` will be used.
48
+
The example uses the latest release version of the Chat SDK package `com.azure.android:azure-communication-chat`, but you can use any version. However, the version of the Trouter package `com.microsoft:trouter-client-android` that's included with the Chat SDK package `com.azure.android:azure-communication-chat` needs to be excluded. When the application is built, it will use the Trouter package version included by the Calling SDK package `com.azure.android:azure-communication-calling`.
49
+
50
+
## Related content
42
51
43
-
## Next steps
44
-
Quickstart sample is available in GitHub [Android QuickStarts](https://github.com/Azure-Samples/communication-services-android-quickstarts.git) under `Add-Chat-Calling` folder and follow the `README.md` on instructions how to run the sample.
52
+
- A quickstart sample is available in the [GitHub repository for Android quickstarts](https://github.com/Azure-Samples/communication-services-android-quickstarts.git), in the `Add-Chat-Calling` folder. For instructions on how to run the sample, follow the `README.md` file.
0 commit comments