我正在使用 Android Studio 开发我的应用程序。
通过 Android Studio 运行应用程序时,Android 4.x 和 5.x 都可以快速启动应用程序。
但是我使用一些国内的强化服务添加shell后,应用程序启动在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')
}