How to use Aliyun's Gradle Google image?

I need to use google () in my project to read dependencies, see below:

buildscript {
    repositories {
        maven{ url "http://maven.aliyun.com/nexus/content/groups/public/" }
        google()
        jcenter()
    }

    dependencies {
        classpath "com.android.tools.build:gradle:3.0.1"
    }
}

allprojects {
    repositories {
        maven{ url "http://maven.aliyun.com/nexus/content/groups/public/" }
        google()
        jcenter()
    }
}

rootProject.buildDir = "../build"
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(":app")
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

where google () and jcenter () are walled, and google () & jcenter (), which are not included in http://maven.aliyun.com/nexus., will appear if they are not used:

> root project > :app > Resolve files of classpath

the problem of getting stuck.

the images provided by Ali include Google and Jcenter:

http://maven.aliyun.com/mvn/view

but if I use this:

google(){ url "https://maven.aliyun.com/repository/google" }

will report an error:

Could not find method google() for arguments [build_481dup0nhfy99x57ko80vlobp$_run_closure1$_closure2$_closure5@7388ff6f] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.
May.14,2021

just add as many as you have, and put them in front of google ()

maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven{ url 'https://maven.aliyun.com/repository/google' }
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e48b82-66678.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e48b82-66678.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?