减少应用程序的启动时间

时间:2018-10-03 16:23:35

标签: android

我有新的Android应用程序。申请启动时间为3秒。将依赖项添加到gradle中后,应用程序启动时间将变为15秒。

这里是依赖项:

    implementation fileTree(include: ['*.jar'], dir: 'libs')

    implementation 'com.yandex.android:mobmetricalib:3.0.0'
    implementation 'com.firebase:firebase-jobdispatcher:0.8.5'

    implementation 'com.android.support:appcompat-v7:28.0.0'

    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:gridlayout-v7:28.0.0'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'

    implementation 'com.jakewharton:butterknife:8.8.1'
    kapt 'com.jakewharton:butterknife-compiler:8.8.1'

    implementation "android.arch.paging:runtime:1.0.0"

    implementation "android.arch.lifecycle:extensions:1.1.1"
    implementation "android.arch.lifecycle:viewmodel:1.1.1"
    implementation "android.arch.lifecycle:livedata:1.1.1"
    kapt "android.arch.lifecycle:compiler:1.1.1"

    implementation 'com.google.android:flexbox:1.0.0'
    implementation 'com.squareup.retrofit:retrofit:1.9.0'
    implementation 'com.crittercism.dexmaker:dexmaker:1.4'
    implementation 'com.squareup.okhttp3:okhttp:3.10.0'
    implementation 'com.makeramen:roundedimageview:2.3.0'
    implementation 'com.reginald.swiperefresh:library:1.1.1'
    implementation 'org.apmem.tools:layouts:1.10@aar'
    implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.6.0'
    implementation 'com.annimon:stream:1.1.6'
    implementation "me.leolin:ShortcutBadger:1.1.21@aar"
    implementation 'net.danlew:android.joda:2.9.9.3'
    testImplementation 'joda-time:joda-time:2.9.9

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.23.3'
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.23.3"
    testImplementation 'android.arch.core:core-testing:1.1.0'

    implementation 'com.google.firebase:firebase-core:11.8.0'
    implementation 'com.google.firebase:firebase-messaging:11.8.0'

    implementation "im.ene.toro3:toro:3.5.2"
    implementation "im.ene.toro3:toro-ext-exoplayer:3.5.2"

如何减少启动时间?

0 个答案:

没有答案