# Android app build failed after adding SDK

**URL:** <https://devforum.zoom.us/t/android-app-build-failed-after-adding-sdk/73853>\
**Category:** Android\
**Created:** [August 8, 2022, 3:26pm UTC](https://devforum.zoom.us/t/android-app-build-failed-after-adding-sdk/73853 "2022-08-08T15:26:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![justintohtw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/justintohtw/32/40272_2.png) [@justintohtw](https://devforum.zoom.us/u/justintohtw)\
**Post date:** [August 8, 2022, 3:26pm UTC](https://devforum.zoom.us/t/android-app-build-failed-after-adding-sdk/73853/1 "2022-08-08T15:26:59Z")

</div>

Hello, I have followed the guide to add the android meeting SDK into my native Android app.  
I have confirmed that I added both the aar.file into my build.gradle.  
implementation project(path: ‘:mobilertc’)  
implementation project(path: ‘:commonlib’)

## Below is the error I got when I try to build my app. 1: Task failed with an exception.

- What went wrong:  
Execution failed for task ‘:app:checkDebugDuplicateClasses’.

> Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.  
> Could not find com.google.android:flexbox:2.0.1.  
> Searched in the following locations:  
> - [https://dl.google.com/dl/android/maven2/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom](https://dl.google.com/dl/android/maven2/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom)  
> - [https://repo.maven.apache.org/maven2/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom](https://repo.maven.apache.org/maven2/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom)  
> Required by:  
> project :app \> project :mobilertc

- 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:desugarDebugFileDependencies’.

> Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.  
> Could not find com.google.android:flexbox:2.0.1.  
> Required by:  
> project :app \> project :mobilertc

- 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.  
> ==============================================================================

## 3: 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:flexbox:2.0.1.  
> Required by:  
> project :app \> project :mobilertc

- 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.  
> ==============================================================================

## 4: Task failed with an exception.

- What went wrong:  
Execution failed for task ‘:app:mergeDebugResources’.

> Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.  
> Could not find com.google.android:flexbox:2.0.1.  
> Required by:  
> project :app \> project :mobilertc

- 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.  
> ==============================================================================

## 5: Task failed with an exception.

- What went wrong:  
Execution failed for task ‘:app:processDebugMainManifest’.

> Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.  
> Could not find com.google.android:flexbox:2.0.1.  
> Required by:  
> project :app \> project :mobilertc

- 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.  
> ==============================================================================

## 6: Task failed with an exception.

- What went wrong:  
Execution failed for task ‘:app:mergeDebugAssets’.

> Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.  
> Could not find com.google.android:flexbox:2.0.1.  
> Required by:  
> project :app \> project :mobilertc

- 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.  
> ==============================================================================

## 7: Task failed with an exception.

- What went wrong:  
Execution failed for task ‘:app:mergeDebugJavaResource’.

> Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.  
> Could not find com.google.android:flexbox:2.0.1.  
> Required by:  
> project :app \> project :mobilertc

- 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.  
> ==============================================================================

## 8: Task failed with an exception.

- What went wrong:  
Execution failed for task ‘:app:mergeDebugNativeLibs’.

> Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.  
> Could not find com.google.android:flexbox:2.0.1.  
> Required by:  
> project :app \> project :mobilertc

Can someone guide me how to solve this problem? Thank you in advance.

---

<div class="post-metadata">

**Author:** ![justintohtw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/justintohtw/32/40272_2.png) [@justintohtw](https://devforum.zoom.us/u/justintohtw)\
**Post date:** [August 8, 2022, 3:30pm UTC](https://devforum.zoom.us/t/android-app-build-failed-after-adding-sdk/73853/2 "2022-08-08T15:30:46Z")

</div>

Below is the list of tasks that were executed.

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

---

<div class="post-metadata">

**Author:** ![justintohtw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/justintohtw/32/40272_2.png) [@justintohtw](https://devforum.zoom.us/u/justintohtw)\
**Post date:** [August 8, 2022, 4:09pm UTC](https://devforum.zoom.us/t/android-app-build-failed-after-adding-sdk/73853/3 "2022-08-08T16:09:22Z")

</div>

The version of my Zoom SDK is v5.11.3.7251

---

<div class="post-metadata">

**Author:** ![mauricio](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mauricio/32/40312_2.png) [@mauricio](https://devforum.zoom.us/u/mauricio)\
**Post date:** [August 9, 2022, 4:15pm UTC](https://devforum.zoom.us/t/android-app-build-failed-after-adding-sdk/73853/4 "2022-08-09T16:15:53Z")

</div>

I am having same…A lot of issues after adding SDK to my app. It built fine before adding SDK, does not build after adding SDK. Did you get any solution?

---

<div class="post-metadata">

**Author:** ![sreeharikr298](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sreeharikr298/32/32969_2.png) [@sreeharikr298](https://devforum.zoom.us/u/sreeharikr298)\
**Post date:** [August 19, 2022, 4:03am UTC](https://devforum.zoom.us/t/android-app-build-failed-after-adding-sdk/73853/5 "2022-08-19T04:03:33Z")

</div>

Solved issue.  
-Upgraded build:gradle  
-removed flexbox:flexbox from gradle.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [August 19, 2022, 9:00pm UTC](https://devforum.zoom.us/t/android-app-build-failed-after-adding-sdk/73853/6 "2022-08-19T21:00:28Z")

</div>

@justintohtw ,

You are still having issues building the SDK? Have you tried upgrading build:gradle as suggested by @sreeharikr298?

---

<div class="post-metadata">

**Author:** ![sreeharikr298](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sreeharikr298/32/32969_2.png) [@sreeharikr298](https://devforum.zoom.us/u/sreeharikr298)\
**Post date:** [August 24, 2022, 7:32am UTC](https://devforum.zoom.us/t/android-app-build-failed-after-adding-sdk/73853/7 "2022-08-24T07:32:35Z")

</div>

No. It was a package duplication issue. @donte.zoom

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [September 23, 2022, 5:33pm UTC](https://devforum.zoom.us/t/android-app-build-failed-after-adding-sdk/73853/8 "2022-09-23T17:33:19Z")

</div>

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