Importing Android SDK libraries with build.gradle (for SDK older than v.2.0.265)
If you are using the older version on the SDK and importing libraries to your project from the repository, for example:
CODE
implementation 'com.vxg.mediasdk:playersdk:2.0.139’
you will get the following error during gradle sync:
CODE
Could not GET ‘http://exchange.videoexpertsgroup.com:8080/repository/internal/com/vxg/mediasdk/playersdk/2.0.139/…’. Received status code 401 from server: Unauthorized
This repository is now accessible only with the password. Please use the username and password as it is shown below:
username "developer"
password "developer1"
CODE
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
}
}
allprojects {
repositories {
jcenter()
google()
maven {
credentials {
username "developer"
password "developer1"
}
url 'http://android.vxg.io/repository/internal/'
name 'VXG'
}
}
}