如何在首次发布时在Lollipop上慢慢处理应用程序启动?

时间:2015-09-18 05:00:11

标签: android android-5.0-lollipop android-5.1.1-lollipop

我正在使用Android Studio开发我的应用。

在Android Studio上运行应用时,Android 4.x和5.x都会快速启动应用。

但是在我使用一些国内强化服务添加外壳之后,Android 5.x中的应用启动需要3秒,而Android 4.x则需要1秒。

我只是不知道原因是什么...为什么它在Android 5.x中启动得这么慢?

这是我的build.gradle,如果您知道,请感谢您的提示。

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"
    defaultConfig {
        applicationId 'com.myatejx.sakernote'
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 72
        versionName '0.7.2'
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            shrinkResources true
        }

        lintOptions {
            abortOnError false
        }
    }
    productFlavors {
    }
}

tasks.withType(JavaCompile) {
    options.encoding = "UTF-8"
}

dependencies {
    compile 'com.android.support:support-v4:22.2.0'
    compile 'com.android.support:appcompat-v7:22.2.0'
    compile 'com.android.support:design:22.2.0'
    compile project(':SwipeActionAdapter')
    compile project(':SystemBarTint')
    compile project(':DragSortListView')
    compile project(':MaterialSetting')
}

0 个答案:

没有答案