Changed  the next line:

maven { url 'http://repo.jfrog.org/artifactory/gradle' }  to  maven {url 'http://oss.jfrog.org/artifactory/libs-release'}