Android Studio 入门与精通 Gradle 项目配置

来源:互联网 发布:js 取消严格模式 编辑:程序博客网 时间:2024/05/02 19:25

下载地址

http://download.csdn.net/detail/a247321453/9502936


文档原地址:

http://google.github.io/android-gradle-dsl/current/


Android Plugin DSL Reference
Version 2.0.0
Introduction
This is the DSL reference for Android Gradle Plugin.


Start reading by finding the right extension type for the plugin you are using, e.g. AppExtension


Extension types
Listed below are the Gradle extension types used by respective plugins:


Type Description 
AppExtension android extension for com.android.application projects.
 
LibraryExtension android extension for com.android.library projects.
 
TestExtension android extension for com.android.test projects.
 


Configuration blocks
Listed below are the configuration blocks available within android


Block Description 
defaultConfig { } The default configuration, inherited by all product flavors (if any are defined).
 
aaptOptions { } Configures aapt options.
 
adbOptions { } Configures adb options.
 
buildTypes { } Configures build types.
 
compileOptions { } Configures compile options.
 
dataBinding { } Configures data binding options.
 
dexOptions { } Configures dex options.
 
jacoco { } Configures JaCoCo options.
 
lintOptions { } Configures lint options.
 
packagingOptions { } Configures packaging options.
 
productFlavors { } Configures product flavors.
 
signingConfigs { } Configures signing configs.
 
sourceSets { } Configures source sets. 
 
splits { } Configures APK splits.
 
testOptions { } 

0 0
原创粉丝点击