Compilation failed when integrate Zoom


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

Error statement:

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.


Which Android Meeting SDK version?

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

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?


Hello @jon.lieblich , 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 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?


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

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:

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

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

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