2016-08-01 64 views
1

當我從Studio安裝應用程序或通過複製到存儲卡時。它第一次顯示白色畫面,然後工作normally.I注意到以下日誌:第一次安裝並出現白屏時延遲打開應用程序


I/dex2oat:dex2oat了27.579ms(線程:4)領域的alloc = 0B的Java 的alloc = 39KB本地ALLOC = 439KB free = 840KB I/dex2oat: /system/bin/dex2oat --debuggable --dex-file =/data/data/com.company.package/files/instant-run/dex/slice-slice_9-classes .dex --oat-file =/data/user/0com.company.package/cache/slice-slice_9-classes.dex

I/dex2oat:dex2oat花了223.751ms(線程:4)arena alloc = 3MB java alloc = 206KB native alloc = 5MB free = 5MB I/dex2oat:/ system/bin/dex2oat --debuggable -dex-file =/data/data/com.company.package/files/instant-run/dex/slice-slice_8-classes.dex --oat-file =/data/user/0/com.company.package/cache/slice-slice_8-classes.dex

I/dex2oat:dex2oat花了515.355ms(線程:4)arena alloc = 855KB java alloc = 315KB native alloc = 4MB free = 2MB I/dex2oat:/ system/bin/dex2oat --debuggable -dex-file =/data/data/com.company.package/files/instant-run/dex/slice-slice_7-classes.dex --oat-file =/data/user/0/com.company.package/cache/slice-slice_7-classes.dex

這下降了0(slice-slice_0-classes),然後我的啓動畫面啓動。 這是任何內存問題,或者我在這裏做錯了。


依賴

依賴{

compile 'com.google.android.gms:play-services-plus:8.4.0' 
compile 'com.google.android.gms:play-services-maps:8.4.0' 
compile 'com.google.android.gms:play-services-identity:8.4.0' 
compile 'com.google.android.gms:play-services-analytics:8.4.0' 

compile 'com.android.support:appcompat-v7:23.4.0' 
compile 'com.android.support:design:23.4.0' 
compile 'com.android.support:recyclerview-v7:23.4.0' 
compile 'com.android.support:cardview-v7:23.4.0' 

//3rd party 
compile 'com.viewpagerindicator:library:[email protected]' 
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4' 
compile 'com.facebook.android:facebook-android-sdk:4.0.0' 
compile 'com.github.lzyzsd:circleprogress:[email protected]' 
compile 'com.getbase:floatingactionbutton:1.10.1' 

compile files('libs/pgsdk.jar') 
compile files('libs/core.jar') 
compile project(':commonslib') 
compile project(':gcmlibrary') 
compile project(':sdkui') 
compile project(':PayU-release') 


compile 'com.google.android.gms:play-services-appindexing:8.4.0' 

}

+0

你第一次嘗試搜索您的build.gradle文件真實 ? http://stackoverflow.com/questions/36575229/android-studio-2-0-pause-white-screen-on-app-first-run –

+0

你可以告訴我你的app的build.gradle文件它看起來像你使用超過65536的方法,這是第一次,它需要更多的時間 –

+0

@HarshSharma我已經在問題中添加了所有依賴關係 –

回答

0

嘗試multiDexEnable =下依賴關係部分

+0

你能解釋這將如何幫助嗎? – Henry

+0

對不起,啓用multiDexEnable並不能解決我的問題。 –

相關問題