工作备份 build.gradle
apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion '22.0.0' defaultConfig { applicationId "com.edaixi.activity" minSdkVersion 9 targetSdkVersion 22 versionCode 15 versionName "3.5" // dex突破65535的限制 multiDexEnabled true //manifestPlaceholders = [UMENG_CHANNEL_VALUE: "default_channel"] } // productFlavors { // default_channel {} // wandoujia {} // xiaomi {} // baidu {} // huawei {} // } // productFlavors.all { flavor -> // flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name] // } signingConfigs { debug { // No debug config } release { storeFile file("/工作文件/AndroidStudioKey/edaixisign") storePassword "edaixi.com" keyAlias "edaixi" keyPassword "edaixi.com" } } 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 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' // 移除无用的resource文件 shrinkResources true } } sourceSets { main { java.srcDirs = ['src/main/java', 'src/main/java-gen'] jniLibs.srcDirs = ['libs'] } } packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile files('libs/fastjson-1.2.6.jar') compile files('libs/umeng-update-v2.6.0.1.jar') compile files('libs/mta-sdk-1.6.2.jar') compile files('libs/libammsdk.jar') compile files('libs/Cashier_SDK-v4.2.0.jar') compile 'com.loopj.android:android-async-http:1.4.8' compile 'com.jakewharton:butterknife:7.0.1' compile 'com.android.support:support-v4:22.2.1' compile 'com.android.support:recyclerview-v7:22.2.1' compile 'de.greenrobot:greendao:1.3.7' compile 'com.android.support:appcompat-v7:22.2.1' compile files('libs/MagicWindowSDK.jar') compile files('libs/locSDK_5.2.jar') compile files('libs/baidumapapi_v3_5_0.jar') compile files('libs/eventbus-2.4.0.jar') compile files('libs/alipaysdk.jar') compile files('libs/TalkingDataAnalytics_V1.2.79.jar') compile files('libs/umeng-analytics-v5.5.3.jar') compile files('libs/du.jar') compile files('libs/avoscloud-v2.6.9.1.jar') compile "com.networkbench.newlens.agent.android:nbs.newlens.agent:2.2.6" } buildscript { repositories { mavenCentral() } dependencies { classpath fileTree(dir: '/工作文件/听云依赖', include: ['*.jar']) //在buildscript添加这行,地址换成自己的. 听云sdk的编译插件,不会嵌入在apk中. } } repositories { mavenCentral() } apply plugin: 'android' apply plugin: 'newlens'
时刻怀有一颗虔诚之心,乐于分享。知识才更有意义。