Build failed after adding SDK

I have followed the documentation to add android meeting SDK into an app.
As mentioned in documentation I have added a both aar files.

to confirm it I have check my build.gradle and below 2 line are in there.

implementation project(path: ':commonlib')
implementation project(path: ':mobilertc')

But I am getting an failure when I tried to run my app.

FAILURE: Build completed with 7 failures.

1: Task failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find
     Searched in the following locations:
       - file:/Users/saurabhkanswal/.m2/repository/com/google/android/exoplayer/exoplayer-core/2.12.3/exoplayer-core-2.12.3.pom
       - file:/Users/saurabhkanswal/and/zoomProto/node_modules/react-native/android/com/google/android/exoplayer/exoplayer-core/2.12.3/exoplayer-core-2.12.3.pom
       - file:/Users/saurabhkanswal/and/zoomProto/node_modules/jsc-android/dist/com/google/android/exoplayer/exoplayer-core/2.12.3/exoplayer-core-2.12.3.pom
     Required by:
         project :app > project :mobilertc
   > Could not find

Any idea how to resolve this error.

Hi @saurabhkanswal8101, thanks for using our SDK.

It seems that the dependencies used by the SDK were not added to your mobilertc/build.gradle file after the AAR was added. Please add the below dependencies to that file to resolve this error.





I checked inside mobilertc/build.gradle
all the dependency you mentioned are in there.

Below are the task which are being failed:

Task :app:generatePackageList
Task :app:preBuild
Task :app:preDebugBuild
Task :app:generateDebugBuildConfig UP-TO-DATE
Task :app:javaPreCompileDebug UP-TO-DATE
Task :app:bundleDebugJsAndAssets SKIPPED
Task :app:mergeDebugShaders UP-TO-DATE
Task :app:compileDebugAidl NO-SOURCE
Task :app:compileDebugShaders NO-SOURCE
Task :app:generateDebugAssets UP-TO-DATE
Task :app:generateDebugResValues UP-TO-DATE
Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
Task :app:extractDeepLinksDebug UP-TO-DATE
Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
Task :app:compileDebugRenderscript NO-SOURCE
Task :app:checkDebugAarMetadata FAILED
Task :app:generateDebugResources UP-TO-DATE
Task :app:processDebugJavaRes NO-SOURCE
Task :app:mergeDebugAssets FAILED
Task :app:processDebugMainManifest FAILED
Task :app:checkDebugDuplicateClasses FAILED
Task :app:mergeDebugJavaResource FAILED
Task :app:desugarDebugFileDependencies FAILED
Task :app:mergeDebugJniLibFolders UP-TO-DATE
Task :app:validateSigningDebug UP-TO-DATE
Task :app:writeDebugAppMetadata UP-TO-DATE
Task :app:writeDebugSigningConfigVersions UP-TO-DATE
Task :app:mergeDebugNativeLibs FAILED

Also want to let you know, I am implementing zoom sdk with my react native project.

Hi @saurabhkanswal8101,

Thanks for confirming that you have added these dependencies and that you have a React Native project. Since this is a build issue likely related to your React Native environment, we are extremely limited in how we can assist due to the fact that we do not currently support React Native for the Meeting SDK. Please let me know if you are able to reproduce this issue in a native Android project and I will be happy to assist further. :slightly_smiling_face:


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.