标签:gradle的基本设置
Project的gradle
buildscript { repositories { jcenter() } dependencies { classpath } } allprojects { repositories { jcenter() } } task clean(: Delete) { delete .}
Modle的gradle
apply : android { compileSdkVersion buildToolsVersion defaultConfig { minSdkVersion targetSdkVersion = [: ] = [: ] } signingConfigs { release { file() } } buildTypes { debug { buildConfigField , , signingConfigs.debug } release { proguardFiles getDefaultProguardFile(), signingConfigsigningConfigs.release buildConfigField , ,} } lintOptions { } productFlavors { offical {} appchina {} anzhi {} mumayi {} lenovo {} qq {} huawei {} xiaomi {} baidu {} meizu {} taobao {} huijia360 {} hiapk {} } .all { flavor -> flavor.manifestPlaceholders = [ :] } sourceSets { main { .srcFile .= [].= [].= [] .= [] .= [] .= [] } hiapk { .srcFile } playstore { .srcFile } instrumentTest.() } } dependencies { compile fileTree(: , : []) androidTestCompile(, { exclude : , : }) compile testCompile }
标签:gradle的基本设置
原文地址:http://8065654.blog.51cto.com/8055654/1886448