Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Build Failure Due to Attribute Name Conflict Between Genesys Android Messenger SDK and ZoomImageView

    Posted 20 days ago

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


  • 2.  RE: Build Failure Due to Attribute Name Conflict Between Genesys Android Messenger SDK and ZoomImageView

    Posted 17 days ago

    Hi- Just following up. Is anyone able to look at this? We are blocked from doing the build for Android Mobile Messenger.



    ------------------------------
    Tricia Taylor
    Product Manager
    ------------------------------



  • 3.  RE: Build Failure Due to Attribute Name Conflict Between Genesys Android Messenger SDK and ZoomImageView

    Posted 16 days ago

    Hi @Tricia Taylor, our Android is on this issue. It will be included in our next scheduled release.



    ------------------------------
    Anton Afanasiev
    Manager, Mobile Development
    ------------------------------



  • 4.  RE: Build Failure Due to Attribute Name Conflict Between Genesys Android Messenger SDK and ZoomImageView

    Posted 10 days ago

    HI @Anton Afanasiev,

    Thanks for your response. Could you please provide a timeline when we can expect this fix to be released from your end that allows us to plan our releases accordingly. Also assuming its going to be version bump. 

    Thanks & Regards,

    Sai Vamsee



    ------------------------------
    Sai Vamsee Pinapaka
    ------------------------------



  • 5.  RE: Build Failure Due to Attribute Name Conflict Between Genesys Android Messenger SDK and ZoomImageView

    Posted 2 days ago

    I can confirm that the fix has already been implemented and merged. However, the content for our upcoming release has already completed testing, and it is too late to include this change in that version.

    The fix will therefore be included in our next scheduled release on February 2, as part of the v1.21 version bump. This should allow you to plan your release accordingly.



    ------------------------------
    Anton Afanasiev
    Manager, Mobile Development
    ------------------------------



  • 6.  RE: Build Failure Due to Attribute Name Conflict Between Genesys Android Messenger SDK and ZoomImageView

    Posted 17 days ago

    Hi @Tricia Taylor

    Thank you for bringing this to our attention. We have engaged our Android subject-matter expert to review the issue and will follow up once we have more information.

    Please note that due to the year-end shutdown, our response may be slightly delayed. We appreciate your patience and understanding.



    ------------------------------
    Anton Afanasiev
    Manager, Mobile Development
    ------------------------------