We are integrating the Genesys UI Android SDK(v 1.18.0) into our application and are encountering a build-time conflict with a third-party library (zoomimageview) which is existing in macys for a long time. Both SDKs define the same attribute name, alignment, in their values.xml files, but with different data types/enums. This conflict causes our Android Gradle build to fail with an IllegalStateException during the resource merging phase (AAPT).
This issue is preventing us from successfully building our application with your SDK integrated.
Genesys sdk -
implementation "com.genesys.cloud:ui:1.18.0"
Zoomimageview sdk -
implementation "io.github.panpf.zoomimage:zoomimage-view:1.3.0"
Issue Details:
Error Message: java.lang.IllegalStateException: Can not add resource (com.android.aaptcompiler.ParsedResource@...) to table
Conflicting Attribute Name: alignment
Conflicting Definitions:
1. From genesys-ui SDK:
xml
<attr name="alignment">
<enum name="AlignLTR" value="8388611"/>
<enum name="AlignRTL" value="8388613"/>
</attr>
2. From zoomimageview SDK:
xml
<attr format="enum" name="alignment">
<enum name="topStart" value="0"/>
<enum name="topCenter" value="1"/>
<enum name="topEnd" value="2"/>
<enum name="centerStart" value="3"/>
<enum name="center" value="4"/>
<enum name="centerEnd" value="5"/>
<enum name="bottomStart" value="6"/>
<enum name="bottomCenter" value="7"/>
<enum name="bottomEnd" value="8"/>
</attr>
Impact:
The Android Asset Packaging Tool (AAPT) cannot reconcile these two different definitions for the single attribute name alignment, leading to a complete build failure.
We have attempted standard workarounds (defining the attribute in our top-level app module's attrs.xml and performing clean builds/cache invalidations), but the error persists.
Requested Action:
To ensure compatibility with other common Android libraries, we request that the Genesys UI SDK team please rename the alignment attribute within the Genesys SDK to a uniquely prefixed name (e.g., genesys_alignment or g_alignment).
#MobileMessenger------------------------------
Tricia Taylor
Product Manager
------------------------------