gradle中的Setting文件与Build文件
2018-01-07 12:16
288 查看
Setting文件
Setting文件可以说是子项目(也可以说是Module)的配置文件,大多数setting.gradle的作用是为了配置子工程,再Gradle多工程是通过工程树表示的,如在Android studio中我们指定相应的module能在主工程当中使用,需要这样include ':example'
Build文件
Build是Project的配置文件,我们可以配置版本,插件,依赖库等等的信息,比较常见的就是Jcenter仓库的配置buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }
相关文章推荐
- 在build.gradle文件中添加若干个依赖后出现以下问题,字面意思是测试app和正式app使用了不同版本的依赖
- android中build.gradle文件简单说明
- build.gradle文件的注释
- android开发项目中的build.gradle文件介绍
- gradle基础的build文件模板_tomcat
- Android开发之深入理解Android Studio构建文件build.gradle配置
- build.gradle模板文件
- build.gradle文件详解
- 9.外层build.gradle文件详解
- 详解build.gradle 文件
- build.gradle文件的配置
- build.gradle文件详解
- gradle基础的build文件模板_jetty
- android studio build.gradle 文件详解
- android gradle build resources.arsc文件未压缩问题解决
- build.gradle文件常用技巧
- android studio中的build.gradle文件
- Android build.gradle文件
- Android-build.gradle文件中的版本号提取,方便多个module开发的二种方法
- window运行gradle build -- --stacktrace出现找不到文件framework-4.3.0.BUILD-SNAPSHOT-schema.zip异常