Step one, inside build.gradle,

maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}

(This is a local one, one for each project)

The second step is to set the HTTP Proxy.

(You can only set it if you buy a proxy VPN)

(This is global)