Skip to main content

1. Add Metric's Maven repository to Gradle

Add your sdk username and password to the gradle.properties file inside the project folder or in the GRADLE_USER_HOME directory. This is required for authentication purposes to access the Metric's Maven repository.

You would need to add two lines to the gradle.properties file:

    sdkUserName  = PROVIDED_USER_NAME
sdkPassword = PROVIDED_PASSWORD
info

The sdkUserName and sdkPassword will be provided upon request.

note

You can place the gradle.properties file either inside your Android project's root folder or in the GRADLE_USER_HOME directory.

  • If you place it in the project's root folder, it will apply only to that specific project.
  • If you place it in the GRADLE_USER_HOME directory (which is usually located at ~/.gradle/ on Unix-based systems like Linux and macOS, and C:\Users\<your_username>.gradle\ on Windows), it will apply globally to all your Gradle projects.