-
Notifications
You must be signed in to change notification settings - Fork 93
Description
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.