applyplugin:'com.android.application'android{compileSdkVersion21buildToolsVersion'21.1.1'defaultConfig{applicationId"us.drilight.android"minSdkVersion14targetSdkVersion21versionCode1versionName"1.0"}lintOptions{checkReleaseBuildsfalse// Or, if you prefer, you can continue to check for errors in release builds,// but continue the build even when errors are found:abortOnErrorfalse}signingConfigs{YourApp{storeFilefile("Your keystore path")storePassword"Your keystore password"keyAlias"Your keyAlias"keyPassword"Your keyPassword"}}buildTypes{release{signingConfigsigningConfigs.YourApp}}sourceSets{main{jniLibs.srcDirs=['libs']}}productFlavors{baidu_market{manifestPlaceholders=[UMENG_CHANNEL_VALUE:"baidu_market"]}meizu_market{manifestPlaceholders=[UMENG_CHANNEL_VALUE:"meizu_market"]}mumayi_market{manifestPlaceholders=[UMENG_CHANNEL_VALUE:"mumayi_market"]}xiaomi_market{manifestPlaceholders=[UMENG_CHANNEL_VALUE:"xiaomi_market"]}wandoujia_market{manifestPlaceholders=[UMENG_CHANNEL_VALUE:"wandoujia_market"]}play_market{manifestPlaceholders=[UMENG_CHANNEL_VALUE:"play_market"]}}}dependencies{compilefileTree(dir:'libs',include:['*.jar'])compileproject(':common')compile'io.realm:realm-android:0.71.0'compile'com.google.code.gson:gson:2.3'compile'com.mcxiaoke.volley:library:1.0.6'}
lintOptions{checkReleaseBuildsfalse// Or, if you prefer, you can continue to check for errors in release builds,// but continue the build even when errors are found:abortOnErrorfalse}这一块主要是对编译过程的配置,如果这个地方不做处理的话,在编译的时候就连warning之类的都会导致编译通不过,所以配置这一块基本是必须的。