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 com.google.android.exoplayer:exoplayer-core:2.12.3.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/google/android/exoplayer/exoplayer-core/2.12.3/exoplayer-core-2.12.3.pom
       - 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
       - https://dl.google.com/dl/android/maven2/com/google/android/exoplayer/exoplayer-core/2.12.3/exoplayer-core-2.12.3.pom
       - https://www.jitpack.io/com/google/android/exoplayer/exoplayer-core/2.12.3/exoplayer-core-2.12.3.pom
     Required by:
         project :app > project :mobilertc
   > Could not find com.google.android.exoplayer:exoplayer-ui:2.12.3.

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.

dependencies.add("default","androidx.security:security-crypto:1.1.0-alpha02")
dependencies.add("default","com.google.crypto.tink:tink-android:1.5.0")
dependencies.add("default","com.google.android.exoplayer:exoplayer-core:2.12.3")
dependencies.add("default","com.google.android.exoplayer:exoplayer-ui:2.12.3")
dependencies.add("default","androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")

dependencies.add("default","androidx.appcompat:appcompat:1.0.0")
dependencies.add("default","androidx.constraintlayout:constraintlayout:2.0.4")
dependencies.add("default","com.google.android.material:material:1.2.0-alpha03")
dependencies.add("default","com.google.android:flexbox:2.0.1")
dependencies.add("default","androidx.multidex:multidex:2.0.0")
dependencies.add("default","com.google.code.gson:gson:2.8.1")
dependencies.add("default","com.github.bumptech.glide:annotations:4.11.0")
dependencies.add("default","com.github.bumptech.glide:glide:4.11.0")


dependencies.add("default","androidx.recyclerview:recyclerview:1.0.0")

Thanks!

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:

Thanks!

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