'Android - The gradle dependency of my jfrog artifactory displays "could not find com.mylibrary:lib:1.9.9"

The Gradle dependency of my jfrog artifactory displays "could not find com.mylibrary:lib:1.9.9". Help?

build.gradle file

repositories {
    mavenLocal()
    maven {
        url("$rootDir/../node_modules/react-native/android")
    }
    maven { url 'https://maven.google.com' }
    maven { url "https://plugins.gradle.org/m2/" }
    maven {
        url "https://mylibrary.jfrog.io/artifactory/mylibrary"
        allowInsecureProtocol = true
        credentials {
            username "hello"
            password "there"
        }
    }
    maven { url 'https://www.jitpack.io' }
    google()
    mavenCentral()
    jcenter()
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source