Build. gradle file comments and build. gradle comments

Source: Internet
Author: User

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}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.