Skip to content

[AGP 9.0 Compatibility] Namespace collision between standard-core:1.7.6 and core:1.0.4 #388

@shushant-ibm

Description

@shushant-ibm

Description: After upgrading to Android Gradle Plugin (AGP) 9.1.0 and Gradle 9.1, the build fails during the Manifest Merger phase because multiple Razorpay artifacts are using the same namespace (com.razorpay).

In AGP 9.0+, android.newDsl=true is the default, and unique namespaces are strictly enforced. The merger tool detects that com.razorpay:standard-core:1.7.6 and com.razorpay:core:1.0.4 both claim the com.razorpay namespace, causing a hard failure.

Error Log:

Plaintext

[com.razorpay:standard-core:1.7.6] .../standard-core-1.7.6/AndroidManifest.xml Error:
Namespace 'com.razorpay' is used in multiple modules and/or libraries: com.razorpay:standard-core:1.7.6, com.razorpay:core:1.0.4.
Please ensure that all modules and libraries have a unique namespace.
Environment:

Android Gradle Plugin: 9.1.0

Gradle Version: 9.1

Razorpay SDK Version: 1.7.6 (standard-core)

Requested Fix: Please update the library build configuration to use unique namespaces in the build.gradle file (e.g., com.razorpay.standardcore and com.razorpay.core) as per the Google Namespace Guidelines.

Temporary Workaround Attempted: Setting android.packageNamespacingViolationRestriction=NON_FATAL no longer works in AGP 9.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions