***********************************************
* app| build.gradle: 包重命名后,app| build.gradle也要相应的改,是改应用id,后台打印和应用区别用的是应用id号。
applicationId"com.iot.smartdemo"
***********************************************
* app| build.gradle
indigo_devel| build.gradle
buildscript {
}
//apply plugin: 'catkin'
allprojects {
}
subprojects {
}
defaultTasks'assembleRelease', 'uploadArchives'
dependencies {
}
** teleop| build.gradle
dependencies {
}
apply plugin:'com.android.application'
android {
}
** indigo-devel| gradle|wrapper| gradle-wrapper.properties
#Mon Jun 20 11:38:32 CST2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
** settings| gradle
Use default gradel wrapper(recommended)
Build Tools Version:23.0.3
Flavors| Min Sdk Version:API 15: Android 4.0.3 (IceCreamSandwich)
Dependencies:
** 经验:多看错误记录、日志,自己理解后解决,不用盲目google。
***********************************************
* app| build.gradle 完整的gradle脚本http://stormzhang.com/devtools/2015/01/15/android-studio-tutorial6/
apply plugin:'com.android.application'
def releaseTime() {
}
android {
}
dependencies {
}
***********************************************
* app| build.gradle
android {
}
参考http://blog.csdn.net/chengkaizone/article/details/51365020#t4
***********************************************
* configurations语句
configurations { } https://docs.gradle.org/current/dsl/org.gradle.api.Project.html#org.gradle.api.Project:configurations(groovy.lang.Closure)
Configures the dependencyconfigurations for this project.
This method executes thegiven closure against the ConfigurationContainer for this project. TheConfigurationContainer is passed to the closure as the closure's delegate.
Examples:
See docs forConfigurationContainer
Delegates to:
ConfigurationContainerfrom configurations