apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion '26.0.2' flavorDimensions 'default' defaultConfig { applicationId APPLICATION_ID minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" multiDexEnabled true testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true ndk { abiFilters "x86" abiFilters "armeabi" } } signingConfigs { eros { keyAlias 'eros签名实例' keyPassword 'erosdemo' storeFile file('../eros_demo.jks') storePassword 'erosdemo' v2SigningEnabled false } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.eros manifestPlaceholders=[ GETUI_APP_ID:GETUI_APPID, GETUI_APP_KEY:GETUI_APPKEY, GETUI_APP_SECRET:GETTUI_APPSECRET, APP_ID:APPLICATION_ID ] } debug { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.eros manifestPlaceholders=[ GETUI_APP_ID:GETUI_APPID, GETUI_APP_KEY:GETUI_APPKEY, GETUI_APP_SECRET:GETTUI_APPSECRET, APP_ID:APPLICATION_ID ] } } lintOptions { checkReleaseBuilds false // Or, if you prefer, you can continue to check for errors in release builds, // but continue the build even when errors are found: abortOnError false } productFlavors { samplechannel{ dimension 'default' } yingyongbao{ dimension 'default' } } productFlavors.all { flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name] } } repositories { mavenCentral() google() } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile "com.android.support:support-v4:${PROJECT_SUPPORTLIBVERSION}" testCompile 'junit:junit:4.12' //基础库 compile project(':nexus') compile project(':wxframework') }