apply plugin: 'com.android.application' //apply plugin: 'com.jakewharton.butterknife' android { compileSdkVersion 28 buildToolsVersion '28.0.3' defaultConfig { applicationId "com.sxr.sdk.ble.keepfit.client" minSdkVersion 19 targetSdkVersion 21 //建议此属性值设为21 io.dcloud.PandoraEntry 作为apk入口时 必须设置 targetSDKVersion>=21 沉浸式才生效 versionCode 1 versionName "1.0" multiDexEnabled true ndk { abiFilters 'x86','armeabi-v7a' } } useLibrary 'org.apache.http.legacy' android.applicationVariants.all { variants -> variants.outputs.all { outputFileName ="宁夏新能源智能监盘app系统.apk" } } buildTypes { release { //在这里添加: lintOptions { checkReleaseBuilds false abortOnError false } minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } //使用uniapp时,需复制下面代码 /*代码开始*/ aaptOptions { additionalParameters '--auto-add-overlay' //noCompress 'foo', 'bar' ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~" } compileOptions { sourceCompatibility = 1.8 targetCompatibility = 1.8 } /*代码结束*/ sourceSets { main { jniLibs.srcDirs = ['libs'] } } } repositories { flatDir { dirs 'libs' } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.aar']) implementation fileTree(dir: 'libs', include: ['uniapp-v8-release.aar']) implementation fileTree(dir: 'libs', include: ['msa_mdid_1.0.13.aar']) implementation fileTree(dir: 'libs', include: ['lib.5plus.base-release.aar']) implementation fileTree(dir: 'libs', include: ['android-gif-drawable-release@1.2.17.aar']) implementation "com.android.support:support-v4:28.0.0" implementation "com.android.support:appcompat-v7:28.0.0" /*uniapp所需库-----------------------开始*/ implementation 'com.android.support:recyclerview-v7:28.0.0' implementation 'com.facebook.fresco:fresco:1.13.0' implementation "com.facebook.fresco:animated-gif:1.13.0" /*uniapp所需库-----------------------结束*/ // 基座需要,必须添加 implementation 'com.github.bumptech.glide:glide:4.9.0' implementation 'com.alibaba:fastjson:1.1.46.android' // 添加uni-app插件 // implementation project(':uniplugin_module') implementation 'com.android.support.constraint:constraint-layout:2.0.1' }