码迷,mamicode.com
首页 > 移动开发 > 详细

内网下Android studio failed解决办法

时间:2020-07-01 12:50:02      阅读:77      评论:0      收藏:0      [点我收藏+]

标签:com   tor   google   oid   tool   fail   har   path   classpath   

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‘}
}

  

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‘}
 } 
}

 

内网下Android studio failed解决办法

标签:com   tor   google   oid   tool   fail   har   path   classpath   

原文地址:https://www.cnblogs.com/dayfan/p/13218317.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!