We do not consider using Alibaba's mirrors here, we all use Google's.
Check your grable version.
If yours is 4 and above, use:
google()
jcenter()
Otherwise use
maven {
url 'https://maven.google.com'
}
jcenter()
! ! ! It should be noted that google.com must be placed above jcenter(), and jcenter must be placed on the last line.