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' }
Menu