apply plugin: 'com.android.application' apply plugin: 'com.jakewharton.butterknife' android { signingConfigs { sjlsxxgl { keyAlias 'sjlsxxgl' keyPassword '123456' storeFile file('sjlsxxgl.jks') storePassword '123456' } } compileSdkVersion rootProject.ext.compileSdkVersion defaultConfig { applicationId "com.mqby.sjlsxxgl" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" signingConfig signingConfigs.sjlsxxgl // Enabling multidex support. multiDexEnabled true ndk { //设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so) abiFilters "armeabi","armeabi-v7a","x86"//,"armeabi", "x86", "armeabi-v7a", "arm64-v8a", "x86_64" } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.sjlsxxgl } debug { signingConfig signingConfigs.sjlsxxgl } } //配置自定义打包名称 android.applicationVariants.all { variant -> variant.outputs.all { output -> def outputFile = output.outputFile if (outputFile != null && outputFile.name.endsWith('release.apk')) { def fileName = "sjpt_pad_release_" + "${defaultConfig.versionCode}_${new Date().format("yyyyMMddHHmm")}.apk" outputFileName = fileName } } } productFlavors { } sourceSets { main { jniLibs.srcDirs = ['libs'] } } compileOptions { sourceCompatibility 1.8 targetCompatibility 1.8 } } dependencies { api fileTree(include: ['*.jar'], dir: 'libs') //注解View butterKnife api 'com.jakewharton:butterknife:9.0.0-rc2' annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc2' api project(':facesample') // api project(':modle') }