apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "cn.dashoo.face" minSdkVersion 21 targetSdkVersion 28 versionCode 108 versionName "1.0.8" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" ndk { abiFilters "arm64-v8a","armeabi-v7a" } //添加如下配置就ok了 lintOptions { checkReleaseBuilds false abortOnError false } //release版本输出包名自动追加版本号和版本名称 applicationVariants.all { variant -> variant.outputs.all { //只处理生产版本 if (buildType.name == 'release') { def createTime = new Date().format("YYYYMMddHHmmss", TimeZone.getTimeZone("GMT+08:00")) // app包名称 outputFileName = "LabSOPFace_V" + defaultConfig.versionName + "_" + createTime + "_" + buildType.name + ".apk" ////指定release输出到指定文件夹 // variant.getPackageApplication().outputDirectory = new File(config.appReleaseDir + "/${createTime}") } } } } // buildToolsVersion "34.0.0" buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) // implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'com.google.android.material:material:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'org.jetbrains:annotations:15.0' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'com.jakewharton:butterknife:10.1.0' annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0' implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' implementation 'com.squareup.okhttp3:okhttp:4.10.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0' implementation 'com.github.chuckerteam.chucker:library:3.2.0' implementation 'com.squareup.okhttp3:okhttp:3.2.0' implementation 'com.squareup.okio:okio:1.7.0' implementation 'com.google.code.gson:gson:2.8.6' // implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.6' // implementation('com.journeyapps:zxing-android-embedded:3.6.0') { transitive = false } // implementation 'com.google.zxing:core:3.3.0' // implementation 'com.github.HuanTanSheng:EasyPhotos:2.3.4' // implementation 'io.reactivex.rxjava2:rxandroid:2.0.1' // implementation 'io.reactivex.rxjava2:rxjava:2.1.5' // implementation 'com.github.bumptech.glide:glide:4.8.0' // implementation 'com.readystatesoftware.systembartint:systembartint:1.0.3' implementation 'org.greenrobot:eventbus:3.2.0' // implementation 'com.android.support:appcompat-v7:28.0.0' // androidTestImplementation 'com.android.support.test:runner:1.0.2' // androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' // implementation 'com.android.support:recyclerview-v7:28.0.0' implementation 'com.github.bumptech.glide:glide:4.9.0' implementation 'io.reactivex.rxjava2:rxjava:2.2.6' implementation 'io.reactivex.rxjava2:rxandroid:2.1.0' implementation project(path: ':DaemonService') implementation project(path: ':library') }