内网下Android studio failed解决办法

弱龄寄事外,委怀在琴书。这篇文章主要讲述内网下Android studio failed解决办法相关的知识,希望能为你提供帮助。

apply plugin: ‘com.android.application‘buildscript { repositories { maven{ url‘http://maven.aliyun.com/nexus/content/groups/public/‘ } maven{ url‘http://maven.aliyun.com/nexus/content/repositories/jcenter‘} google() }dependencies { classpath ‘com.android.tools.build:gradle:4.0.0‘ } }repositories { //jcenter() //把这里注释掉,换成阿里的源 maven{ url‘http://maven.aliyun.com/nexus/content/groups/public/‘ } maven{ url‘http://maven.aliyun.com/nexus/content/repositories/jcenter‘} }

【内网下Android studio failed解决办法】
buildscript{ repositories{ //jcenter() //把这里注释掉,换成阿里的源 maven{ url‘http://maven.aliyun.com/nexus/content/groups/public/‘ } maven{ url‘http://maven.aliyun.com/nexus/content/repositories/jcenter‘} google() } } allprojects{ repositories{ //jcenter() //把这里注释掉,换成阿里的源 maven{ url‘http://maven.aliyun.com/nexus/content/groups/public/‘ } maven{ url‘http://maven.aliyun.com/nexus/content/repositories/jcenter‘} } }

 

    推荐阅读