Amitabh Tiwari
Amitabh Tiwari

Reputation: 63

Could not write to file pom.xml android

Unable to push android library to maven. It is giving following error. "Could not edit /../../pom.xml file".... caused by InvalidUserDataException: The configuration to scope mapping is not unique. Please help.

Upvotes: 4

Views: 2375

Answers (2)

JJD
JJD

Reputation: 51882

I was able to resolve the InvalidUserDataException by using as of today the latest version of the multidex library: androidx.multidex:multidex:2.0.1.
I verified that the error occurs when I use androidx.multidex:multidex:2.0.0.
I also verified that the error does not occur when I keep using com.android.support:multidex:1.0.3 in combination with android.enableJetifier=true.

Upvotes: 0

Sahitya Pasnoor
Sahitya Pasnoor

Reputation: 607

The problem is with version and scope mapping while updating your pom file.If multiple mappings are found for same dependencies exception is thrown. You can see it here for unique property mapping in spring. For Android, you must use an updated version of standard maven plugin Android Maven Plugin.

This might help you Repository link and integration details.

Upvotes: 1

Related Questions