内网下Android studio failed解决办法
Posted dayfan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了内网下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‘} }
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解决办法的主要内容,如果未能解决你的问题,请参考以下文章
关于Android studio git Authentication failed
Android resource compilation failed Android Studio 添加头部注释
Android Studio:Failed to resolve ***
Android Studio 3.0预览版本 Error:Gradle: failed to create directory 解决方案