android studio 解决gradle加载依赖慢的问题
生活随笔
收集整理的這篇文章主要介紹了
android studio 解决gradle加载依赖慢的问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在更目錄的 build.gradle 下添加兩行配置
?
buildscript {repositories {google() maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}jcenter()}dependencies {classpath 'com.android.tools.build:gradle:3.0.1'// NOTE: Do not place your application dependencies here; they belong// in the individual module build.gradle files} }allprojects {repositories {google() maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}jcenter()} }task clean(type: Delete) {delete rootProject.buildDir }總結
以上是生活随笔為你收集整理的android studio 解决gradle加载依赖慢的问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PHP--TP开发模式
- 下一篇: 设置控件宽高比例