# Could not resolve com.google.android:flexbox:2.0.1 for zoom-sdk-android-5.5.1.1319

**URL:** <https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921>\
**Category:** Android\
**Created:** [July 9, 2021, 7:36pm UTC](https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921 "2021-07-09T19:36:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![imranrana07](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/imranrana07/32/29048_2.png) [@imranrana07](https://devforum.zoom.us/u/imranrana07)\
**Post date:** [July 9, 2021, 7:36pm UTC](https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921/1 "2021-07-09T19:36:52Z")

</div>

Adding the zoom-sdk-android-5.5.1.1319 and commonlib and mobilertc aswell when i am trying to run the app it is showing the error **“Could not resolve com.google.android:flexbox:2.0.1”** Even added the **implementation ‘com.google.android:flexbox:2.0.1’** but could not solve the issue.

ext.kotlin\_version = “1.5.10”  
repositories {  
google()  
mavenCentral()  
}  
dependencies {  
classpath ‘com.android.tools.build:gradle:4.2.2’  
classpath “org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin\_version”

added the error message SS. Can anyone please help me solve this issue

 ![Screen Shot 2021-07-10 at 1.35.48 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/b/9ba22f5832353e307523025f6b5e3f4db95b1f34.jpeg)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [July 9, 2021, 9:38pm UTC](https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921/2 "2021-07-09T21:38:32Z")

</div>

Hi @imranrana07, thanks for using our SDK.

It looks like there are some missing dependencies in your project. To resolve this, take a look at the sample project included with the SDK and ensure that your `mobilertc/build.gradle` file matches the contents of the same file in the sample project.

Thanks!

---

<div class="post-metadata">

**Author:** ![imranrana07](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/imranrana07/32/29048_2.png) [@imranrana07](https://devforum.zoom.us/u/imranrana07)\
**Post date:** [July 10, 2021, 6:25am UTC](https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921/3 "2021-07-10T06:25:47Z")

</div>

i have added  
multiDexEnabled true  
vectorDrawables.useSupportLibrary = true

lintOptions {  
checkReleaseBuilds false  
abortOnError false  
}  
and  
implementation project(’:commonlib’)  
implementation project(’:mobilertc’)  
but still did not work

---

<div class="post-metadata">

**Author:** ![imranrana07](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/imranrana07/32/29048_2.png) [@imranrana07](https://devforum.zoom.us/u/imranrana07)\
**Post date:** [July 10, 2021, 7:53am UTC](https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921/4 "2021-07-10T07:53:17Z")

</div>

one more thing what i see,gradle cannot resolve flexbox 2.0.1 but can recognize flexbox:3.0.0’.  
is that any reason of showing error?

---

<div class="post-metadata">

**Author:** ![imranrana07](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/imranrana07/32/29048_2.png) [@imranrana07](https://devforum.zoom.us/u/imranrana07)\
**Post date:** [July 11, 2021, 2:20pm UTC](https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921/5 "2021-07-11T14:20:14Z")

</div>

Do you have any solution for my question?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [July 12, 2021, 6:58pm UTC](https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921/6 "2021-07-12T18:58:21Z")

</div>

Hi @imranrana07,

It seems that you are looking at the `build.gradle` file found in your app module. If you take a look at the `build.gradle` file found in the `mobilertc` module of the sample app, you should see the following:

```auto
configurations.create("default")
artifacts.add("default", file('mobilertc.aar'))

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","androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")

dependencies.add("default","androidx.appcompat:appcompat:1.0.0")
dependencies.add("default","androidx.constraintlayout:constraintlayout:1.1.3")
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")

```

Adding these to your project’s `mobilertc/build.gradle` file should resolve the issue.

Thanks!

---

<div class="post-metadata">

**Author:** ![hangma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hangma/32/29363_2.png) [@hangma](https://devforum.zoom.us/u/hangma)\
**Post date:** [July 21, 2021, 5:45am UTC](https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921/7 "2021-07-21T05:45:18Z")

</div>

It is because you have made mavenCentral as your repository source and com.google.android:flexbox:2.0.1 cannot be found in mavenCentral.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [July 21, 2021, 10:01pm UTC](https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921/8 "2021-07-21T22:01:59Z")

</div>

Thanks @hangma, great catch!

It is definitely a good idea to ensure that the correct repositories have been added to your project’s `build.gradle` file. Currently, the sample app contains the following:

```auto
repositories {
    google()
    jcenter()
}

```

Thanks!

---

<div class="post-metadata">

**Author:** ![imranrana07](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/imranrana07/32/29048_2.png) [@imranrana07](https://devforum.zoom.us/u/imranrana07)\
**Post date:** [July 23, 2021, 2:36pm UTC](https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921/9 "2021-07-23T14:36:59Z")

</div>

So what’s the solution now?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [July 23, 2021, 10:49pm UTC](https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921/10 "2021-07-23T22:49:52Z")

</div>

Hi @imranrana07,

Can you try adding the `jcenter()` line to the `repositories` block in your `build.gradle` file?

Thanks!

---

<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:** [August 23, 2021, 8:50am UTC](https://devforum.zoom.us/t/could-not-resolve-com-google-android2-0-1-for-zoom-sdk-android-5-5-1-1319/53921/11 "2021-08-23T08:50:18Z")

</div>

Closed on August 23, 2021, 8:50am UTC

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