スタジオからアプリをインストールするとき、またはメモリカードにコピーするとき。最初にインストールされ、白い画面が表示されると、アプリを開く際の遅延
I/dex2oat:それは、次のログに気づくnormally.I仕事、白い画面を示し初めてのアリーナのalloc = 0Bのjava のalloc = 39キロバイトネイティブのalloc:dex2oatは27.579ms(4スレッド)を取りました= 439KB無料= 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ネイティブalloc = 5MB空き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ネイティブalloc = 4MB空き= 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'
}
の下であなたのbuild.gradleファイルにmultiDexEnable =真 を試してみてください、あなたは最初に検索してみてくださいましたか? http://stackoverflow.com/questions/36575229/android-studio-2-0-pause-white-screen-on-app-first-run –
私にあなたのアプリのbuild.gradleファイルを表示できますか?初めて65536を超える方法を使用しています。 –
@HarshSharma質問にすべての依存関係を追加しました –