Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Android应用推出的第一次推出即将花费更多时间甚至30秒以上大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
以下是应用程序首次安装时的日志:

而且我在我的项目中使用MultiDex库,它将完全在预棒棒糖设备之下工作.这种延迟在棒棒糖设备中的延迟在30秒到90秒之间的第一次应用程序启动.

看到这不是因为MultiDex对吗?因为当时间是1)初始化05-12 13:16:23.632和第二个日志36秒后是05-12 13:16:59.041

这个东西创建了应用程序延迟ClassLoader引用…. MultiDex正在初始化快速.下面是屏幕截图@L_489_2@它需要15秒到30秒,有时甚至更多.

我的Gradle文件是:

dependencies {
compile fileTree(dir: 'libs',include: ['*.jar'])
TESTCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'

compile 'com.squareup.piCasso:piCasso:2.3.2'
compile 'com.bignerdranch.android:expandablerecyclerview:2.1.1'
compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
compile 'org.apache.httpcomponents:httpcore:4.2.4'
compile 'org.apache.httpcomponents:httpR_276_11845@ime:4.3'
compile 'com.google.code.gson:gson:2.5'
compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4'
compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
compile 'com.squareup.okhttp3:logging-interceptor:3.1.2'
compile 'co.lujun:androidtagview:1.0.2'

compile 'com.google.android.gms:play-services-analytics:9.0.1'
compile 'com.google.android.gms:play-services-auth:9.0.1'
compile 'com.google.android.gms:play-services-plus:9.0.1'
compile 'com.google.android.gms:play-services-gcm:9.0.1'
compile 'com.google.android.gms:play-services-maps:9.0.1'
compile 'com.google.android.gms:play-services-LOCATIOn:9.0.1'
compile 'org.solovyev.android.views:linear-layout-manager:0.5@aar'
compile 'org.apache.commons:commons-lang3:3.0'

compile 'jp.wasabeef:piCasso-transformations:2.0.0'
compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.3.0'
compile 'com.astuetz:pagerslidingtabStrip:1.0.1'
compile 'com.greysonparrelli.permiso:permiso:0.2.0'
compile 'com.github.lawloretienne:imagegallery:0.0.14'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.facebook.android:facebook-android-sdk:4.10.0'
compile 'com.github.mahmed8003:DroidValidatorLight:1.0.0'
compile 'com.android.support:palette-v7:23.4.0'
compile 'com.yalantis:ucrop:1.1.+'
compile 'com.baoyz.pullrefreshlayout:library:1.2.0'
compile 'com.jakewharton:butterknife:7.0.1'
}

任何帮助欣赏

@H_403_23@解决方法
最后找到答复多于16天全部感谢你@Amir.正确答案是禁用即时运行然后运行.新发布的Android studio 2.0和2.1.第一次启动应用程序需要比平时更长的时间才能在调试模式下发生,而不会影响您发布的APK.
SetTings/Preferences(MaC) → Build,Execution,Deployment → Instant Run and uncheck Instant Run

大佬总结

以上是大佬教程为你收集整理的Android应用推出的第一次推出即将花费更多时间甚至30秒以上全部内容,希望文章能够帮你解决Android应用推出的第一次推出即将花费更多时间甚至30秒以上所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。