Build. gradle file comments and build. gradle comments
Gradle is a dependency management tool based on the Froovy language and mainly for Java applications. It discards various complicated configurations based on xml, instead, it is a Groovy-based internal domain-specific (DSL) language.
Apply plugin: 'com. android. application '// description of the module type, com. android. application is a program, com. android. library is the library android {compileSdkVersion 22 // compiled SDK version buildToolsVersion "22.0.1" // compiled Tools version defaultConfig {applicationId "com. nd. famlink "// application package name minSdkVersion 8 // supported target version targetSdkVersion 19 // supported target version versionCode 52 // version versionName" 3.0.1 "// version name} sourceSets {// directory pointing to configuring main {manifest. srcFile 'androidmanifest. xml' // specifies the AndroidManifest file java. srcDirs = ['src'] // specify the source directory resources. srcDirs = ['src'] // specify the source directory aidl. srcDirs = ['src'] // specify the source directory renderscript. srcDirs = ['src'] // specify the source directory res. srcDirs = ['res'] // specify the Resource Directory assets. srcDirs = ['assets'] // specify the assets Directory jniLibs. srcDirs = ['libs'] // specify the lib library directory} debug. setRoot ('Build-types/debug') // specifies the debug mode path release. setRoot ('Build-types/release ') // specifies the release mode path} signingConfigs {// signature configuration release {// The storeFile file ("fk. keystore ") // key file path storePassword "123" // key File Password keyAlias "fk" // key alias keyPassword "123" // key password} debug {// publish signature configuration storeFile file ("fk. keystore ") // key file path storePassword "123" // key File Password keyAlias "fk" // key alias keyPassword "123" // key password} buildType {// build type release {// publish minifyEnabled true // enable proguardFiles getdefadefaproguardfile('proguard-android.txt'folder, 'proguard-project.txt '// specify the obfuscation rule file signingConfig signingConfigs. release // set signature information} release {// debug signingConfig signingConfigs. release // set signature information} packagingOptions {// set the META-INF In the packaged apk to remove the specified file exclude 'meta-INF/ASL2.0 'exclude' META-INF/LICENSE' exclude 'meta-INF/NOTICE 'exclude' META-INF/MANIFEST. MF '} lintOptions {// relevant configuration of lint abortOnError false // end error reporting during lint to prevent inexplicable failure during compilation} dependencies {compile fileTree (dir: 'libs', exclude: ['android-support *. jar '], include :['*. jar ']) // compile. jar file compile project (': easylink') // compile the additional project compile project (': ImageLibrary ') compile project (': ImageResLibrary ') compile 'com. nostra13.universalimageloader: universal-image-loader: 1.9.3 '// compile a third-party open source library from Jcenter}