Azure / communication-ui-library-android

Azure Communication UI Mobile Library for Android

Home Page:https://learn.microsoft.com/en-us/azure/communication-services/concepts/ui-library/ui-library-overview?pivots=platform-web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I use Call and Chat in the same app?

runceel opened this issue · comments

Describe the bug
I tried to use calling and chat features on an app. But I'm facing compile error messages such as Duplicate class com.skype.rt.Auf found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1) .

I found a following question on stackoverflow.
https://stackoverflow.com/questions/68798800/azure-calling-and-skype-class-duplication

SnehaAgrawal-MSFT answered Sorry, currently as the notice mentioned, When using Android Chat and Calling SDK together in the same application, I couldn't find any issue and PR for this. Is this issue resolved or not?

To Reproduce
Steps to reproduce the behavior:

  1. Add chat and calling sdks to same android app project.
  2. Build the app.

Expected behavior
Chat and calling sdks work fine together in same app.

Screenshots
n/a

AzureCommunicationUILibrary (please complete the following information):

build.gradle
implementation 'com.azure.android:azure-communication-ui-chat:1.0.0-beta.1'
implementation 'com.azure.android:azure-communication-ui-calling:1.1.0'

Smartphone (please complete the following information):

  • Device: [e.g. Samsung Galaxy]
  • API: [e.g. API29]

Call Logs
Collect and attach call logs Enable and access call logs

Additional context

Full build log:

Executing tasks: [:app:assembleDebug] in project C:\Labs\AcsIdApi\ACSSample.Android

Values of variant API AnnotationProcessorOptions.arguments are queried and may return non final values, this is unsupported
> Task :app:createDebugVariantModel UP-TO-DATE
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:checkDebugAarMetadata UP-TO-DATE
> Task :app:generateDebugResValues UP-TO-DATE
> Task :app:mapDebugSourceSetPaths UP-TO-DATE
> Task :app:generateDebugResources UP-TO-DATE
> Task :app:mergeDebugResources UP-TO-DATE
> Task :app:packageDebugResources UP-TO-DATE
> Task :app:parseDebugLocalResources UP-TO-DATE
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
> Task :app:extractDeepLinksDebug UP-TO-DATE

> Task :app:processDebugMainManifest
[com.azure.android:azure-communication-chat:2.0.0] C:\Users\kaota\.gradle\caches\transforms-3\a70fa960c60f948a565933db1531cb07\transformed\jetified-azure-communication-chat-2.0.0\AndroidManifest.xml:19:5-79 Warning:
	Element uses-permission#android.permission.ACCESS_NETWORK_STATE at [com.azure.android:azure-communication-chat:2.0.0] AndroidManifest.xml:19:5-79 duplicated with element declared at [com.azure.android:azure-communication-chat:2.0.0] AndroidManifest.xml:18:5-79

> Task :app:processDebugManifest
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets UP-TO-DATE
> Task :app:compressDebugAssets UP-TO-DATE
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:checkDebugDuplicateClasses FAILED
> Task :app:desugarDebugFileDependencies
> Task :app:mergeDebugJniLibFolders UP-TO-DATE
> Task :app:validateSigningDebug UP-TO-DATE
> Task :app:writeDebugAppMetadata UP-TO-DATE
> Task :app:writeDebugSigningConfigVersions
> Task :app:processDebugManifestForPackage
> Task :app:mergeDebugNativeLibs FAILED
warn: removing resource com.example.acssample:plurals/people_picker_accessibility_suggestions_opened without required default value.
warn: removing resource com.example.acssample:plurals/people_picker_accessibility_text_view without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_click_persona without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_click_selected_persona without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_clicked_persona without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_default_hint without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_delete_persona without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_delete_selected_persona without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_deselect_persona without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_deselect_selected_persona without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_deselected_persona without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_persona_added without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_persona_removed without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_replaced without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_select_persona without required default value.
warn: removing resource com.example.acssample:string/people_picker_accessibility_selected_persona without required default value.
warn: removing resource com.example.acssample:string/people_picker_sample_label without required default value.
warn: removing resource com.example.acssample:string/people_picker_search_directory without required default value.
warn: removing resource com.example.acssample:string/people_picker_search_progress without required default value.

> Task :app:processDebugResources
> Task :app:kaptGenerateStubsDebugKotlin UP-TO-DATE
> Task :app:kaptDebugKotlin UP-TO-DATE
> Task :app:compileDebugKotlin UP-TO-DATE
> Task :app:compileDebugJavaWithJavac UP-TO-DATE
> Task :app:mergeDebugJavaResource
> Task :app:dexBuilderDebug

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class com.skype.rt.Auf found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.Auf$AppState found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.ConnectivityChangeReceiver found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.FileStat found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.JniNetworkParams found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.JniNetworkParams$MccMnc found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.JniNetworkParams$NetworkCategory found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.JniNetworkParams$NetworkConnectionCost found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.JniNetworkParams$NetworkConnectionState found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.JniNetworkParams$NetworkConnectionSubType found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.JniNetworkParams$NetworkConnectionType found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.JniNetworkParams$NetworkRoamingState found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.KeyStoreWrap found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.LeakChecker found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.LogComponent found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.LogFactory found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.LogLevel found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.NetInterface found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.NetInterface$GenericNetworkCallback found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.NetInterface$GenericNetworkCallback$1 found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.NetInterface$GenericNetworkCallback$2 found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.NetInterface$NetworkCallback found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.NetInterface$TransportType found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.NetIntf found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.PowerReceiver found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.ProxyInfo found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.RootToolsHandler found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.RtContext found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.Spl found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.Spl$BytePii found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.Spl$CharPii found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.Spl$DoublePii found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.Spl$FloatPii found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.Spl$IntegerPii found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.Spl$LongPii found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.Spl$Pii found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.Spl$ShortPii found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.Spl$StringPii found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.SysInfo found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.WiFiNetworkState found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     Duplicate class com.skype.rt.WiFiNetworkStatus found in modules jetified-azure-communication-calling-2.5.1-beta.1-runtime (com.azure.android:azure-communication-calling:2.5.1-beta.1) and jetified-trouter-client-android-0.1.1-runtime (com.microsoft:trouter-client-android:0.1.1)
     
     Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction
   > 2 files found with path 'lib/arm64-v8a/librt-java-bindings.so' from inputs:
      - C:\Users\kaota\.gradle\caches\transforms-3\bd690a8fc097abff3c433d68ba6522e9\transformed\jetified-azure-communication-calling-2.5.1-beta.1\jni\arm64-v8a\librt-java-bindings.so
      - C:\Users\kaota\.gradle\caches\transforms-3\45bbdb02c98e8e0bef2fdeccdc059d4a\transformed\jetified-trouter-client-android-0.1.1\jni\arm64-v8a\librt-java-bindings.so
     If you are using jniLibs and CMake IMPORTED targets, see
     https://developer.android.com/r/tools/jniLibs-vs-imported-targets

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 7s
31 actionable tasks: 10 executed, 21 up-to-date

Currently Call + Chat integrations have known issues in regards to conflicts with TRouter.

more information available on this page.
https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/chat/get-started?pivots=programming-language-android&tabs=windows#receive-chat-messages-from-a-chat-thread

I see you are part of the Microsoft Org, I'll message you on Teams to continue conversation, will close this issue for now as it's a known issue downstream.