# Compilation failed when integrate Zoom

**URL:** <https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465>\
**Category:** Android\
**Created:** [September 15, 2021, 7:15am UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465 "2021-09-15T07:15:35Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [September 15, 2021, 7:15am UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/1 "2021-09-15T07:15:35Z")

</div>

**Description**  
Hello,

When I try to integrate Zoom into an existing application, I get the following error and the build fails.

Error statement:

```auto
Android resource compilation failed
    
C:\Users\GODA\Desktop\onrepo_lb_app_androidx\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:14063: AAPT: error: duplicate value for resource 'attr/stroke_width' with config ''.
    
C:\Users\GODA\Desktop\onrepo_lb_app_androidx\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:14063: AAPT: error: resource previously defined here.
    
C:\Users\GODA\Desktop\onrepo_lb_app_androidx\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml: AAPT: error: file failed to compile.

```

I think it’s caused by in res/values/values.xml in mobilertc.aar, but I’d like to know how to fix it.

Thanks.

**Which Android Meeting SDK version?**

zoom sdk android : 5.7.1.1268  
Android Gradle Plugin Version : 3.5.0  
Gradle Version : 5.4.1  
compileSdkVersion : 28  
minSdkVersion : 24  
targetSdkVersion : 28  
AndroidStudioVersion : 4.0.2

---

<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:** [September 16, 2021, 12:55am UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/2 "2021-09-16T00:55:56Z")

</div>

Hi @KAZUMA87, thanks for the post.

Based on the error message, it appears that there is a naming collision in your project. What leads you to believe this is caused by a value in the SDK?

Thanks!

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [September 16, 2021, 6:48am UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/3 "2021-09-16T06:48:46Z")

</div>

Hello @jon.zoom , thanks for your reply.

This error message did not appear before I installed the zoom SDK, mobilerct, and commonlib, so I’m assuming one of these is the cause.  
I did a full search for the name stroke\_width using ctrl+shift+f and only found one, and changing it to custom\_stroke\_width did not remove the error message.  
Therefore, I looked at the contents of mobilertc.aar and commonlib.aar and found that there was a section in mobilertc/res/values/values.xml that also used stroke\_width, so I think that is the cause.

Thanks.

---

<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:** [September 16, 2021, 5:54pm UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/4 "2021-09-16T17:54:48Z")

</div>

Hi @KAZUMA87,

Thanks for the additional information. So it sounds like there is a naming collision between your project and the SDK, but it is not clear why it wasn’t resolved when you renamed the resource in your project. After renaming, are you still seeing the error if you clean and rebuild? What about after invalidating caches and restarting?

Thanks!

---

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [September 23, 2021, 11:32am UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/5 "2021-09-23T11:32:20Z")

</div>

I’m also experiencing a compilation error with the same SDK version: 5.7.1.1268

These are the errors I see:  
AAPT: error: duplicate value for resource ‘attr/progress’ with config ‘’.  
AAPT: error: resource previously defined here.

Seems to relate to this value:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/0/b0121356b36579826129febf3a353102dab77585.png)

I don’t have this defined in my code. Can someone help?  
\*\*\*\*\* edited \*\*\*\*\*\*  
I found the problematic attr “progress” that I defined in our code and changed its name

---

<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:** [September 23, 2021, 5:44pm UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/6 "2021-09-23T17:44:09Z")

</div>

I’m glad to hear you were able to resolve this issue!

Please don’t hesitate to reach back out with any additional questions. 🙂

---

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [September 26, 2021, 6:43am UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/7 "2021-09-26T06:43:33Z")

</div>

Now I’m getting a few errors like this one:  
\*\*\*\*\*/mobilertc/build/.transforms/1fc863a1c2f86c1ae6043f9154b16ff5/jetified-mobilertc/res/layout/activity\_media\_player.xml:7: AAPT: error: attribute fastforward\_increment (aka datosapp.datos\_healthad.com.unified:fastforward\_increment) not found.

---

<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:** [September 27, 2021, 4:30pm UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/8 "2021-09-27T16:30:48Z")

</div>

Hi @idit.barash,

You were able to successfully build before these errors showed up, right? What changes were made in your project between then and now?

Thanks!

---

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [September 27, 2021, 4:49pm UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/9 "2021-09-27T16:49:57Z")

</div>

Hi Jon,  
Of course it compiled 🙂 The only change is that I replaced the commonlib.aar and the mobilertc.aar with the new version.

Thanks Idit

---

<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:** [September 27, 2021, 10:11pm UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/10 "2021-09-27T22:11:50Z")

</div>

Hi @idit.barash,

Based on your previous posts, you were already on the latest version of the SDK when you resolved the issue you were having before. Has anything changed in your project since that issue was resolved?

Thanks!

---

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [September 28, 2021, 9:23am UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/11 "2021-09-28T09:23:27Z")

</div>

The latest SDK never compiled with my project. I solved one compilation error and then I got the second one. No other changes were made

---

<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:** [September 28, 2021, 8:59pm UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/12 "2021-09-28T20:59:36Z")

</div>

Hi @idit.barash,

I see, thanks for clarifying. If you were updating from an older version of the SDK, it is possible that the required dependencies have changed, depending on which version you were previously using. An easy way to check this would be to look at the SDK sample app’s `mobilertc/build.gradle` file and compare the dependencies there against your project.

Thanks!

---

<div class="post-metadata">

**Author:** ![idit.barash](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/idit.barash/32/2636_2.png) [@idit.barash](https://devforum.zoom.us/u/idit.barash)\
**Post date:** [September 29, 2021, 8:41am UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/13 "2021-09-29T08:41:21Z")

</div>

Thanks!! I copied the dependencies from the mobilertc/build.gradle and it compilde.  
Thank you for your help

---

<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:** [September 29, 2021, 6:42pm UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/14 "2021-09-29T18:42:11Z")

</div>

That’s great to hear it’s building, glad I was able to help!

---

<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:** [October 30, 2021, 4:42am UTC](https://devforum.zoom.us/t/compilation-failed-when-integrate-zoom/57465/15 "2021-10-30T04:42:18Z")

</div>

Closed on October 30, 2021, 4:42am UTC

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