阅读 86

笔者Android studio中build.gradle文件最新配置

 1 // Top-level build file where you can add configuration options common to all sub-projects/modules.
 2 
 3 buildscript {
 4     repositories {
 5         jcenter() {url "https://maven.aliyun.com/repository/jcenter"}
 6         maven {url ‘https://maven.aliyun.com/repository/google/‘}
 7     }
 8     dependencies {
 9         classpath ‘com.android.tools.build:gradle:4.1.0‘
10 
11         // NOTE: Do not place your application dependencies here; they belong
12         // in the individual module build.gradle files
13     }
14 }
15 
16 allprojects {
17     repositories {
18         jcenter() {url "https://maven.aliyun.com/repository/jcenter"}
19         maven { url ‘https://maven.aliyun.com/repository/google/‘ }
20     }
21 }
22 
23 task clean(type: Delete) {
24     delete rootProject.buildDir
25 }

 

原文:https://www.cnblogs.com/MadScientist-okarin/p/14639640.html

文章分类
代码人生
版权声明:本站是系统测试站点,无实际运营。本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 XXXXXXo@163.com 举报,一经查实,本站将立刻删除。
相关推荐