In my application I am working on play-services-tapandpay. With the help of following link, adding dependency in local I am able to run the code smoothly in local.
Now the problem is I am creating production apk to deploy in play store, where I am not getting idea how to access "play-services-tapandpay" dependency which was placed in local.
I did not find any artifactory repository to access it from server.
Can anyone let me know how to access that local dependency file from server.
You have several options to try:
Option 1 - Server with admin access
If you have admin access to the server you could copy the
play-services-tapandpayfolder to the server and refer to it in you gradle file (just like you did locally):Option 2 - AAR in the libs folder
You could put the
play-services-tapandpay-x.y.z.aarfile in your projectlibsfolder and ensure you have the following in yourbuild.gradlefile:You should also manually add all the dependencies from
play-services-tapandpay-x.y.z.pomto yourbuild.gradle.Option 3 - Upload the files to a private Nexus Maven repository
The files you are required to upload are:
maven-metadata.xml,aarandpom.You could use the UI or if you prefer the command line, these should be the commands:
Reference: https://support.sonatype.com/hc/en-us/articles/115006744008
Then in your
settings.gradleyou need to add your private Maven repository:Finally, you can use the dependency in you
build.gradle: