macbookでandroidstudioを使って、androidアプリ開発をしています。
画像を使ったカードゲームのようなものを作っており、デッキ作成画面で90枚ほど画像を表示させたいのですが、デッキ作成画面を開こうとすると、エラーが起こっていないのにエミュレータが落ちてしまいます。(画像を20枚ほどに減らすと表示されました)
これはpcのスペックなのでしょうか。それとも、エミュレータで作ったandroidスマホのスペックのせいなのでしょうか。
そもそも80枚で落ちる分けないと思っているので、もしかしたらコードが悪いのかもしれませんので一応xmlを載せておきます。ちなみにjavaには表示以外の機能をつけておりませんので原因ではないと考えています。
アドバイス宜しくお願いします。
[追記]
06-08 13:26:31.183 12575-12575/com.google.android.setupwizard E/SetupWizard: [PreDeferredUpdateService] Error attempting to checkin/early update java.util.concurrent.CompletionException: com.google.android.setupwizard.common.util.CompletableFutures$NoMoreRetriesException: java.lang.IllegalStateException: bindService failed at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:331) at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:340) at java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1018) at java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2150) at com.google.android.setupwizard.update.EarlyUpdateHelper.runEarlyUpdateWithRetries(EarlyUpdateHelper.java:280) at com.google.android.setupwizard.update.EarlyUpdateHelper.lambda$runEarlyUpdateWithRetries$5(EarlyUpdateHelper.java:299) at com.google.android.setupwizard.update.-$$Lambda$EarlyUpdateHelper$Nau9PyIrwsMoLscYiG1FI7R2Mfs.apply(Unknown Source:6) at java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1016) at java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2150) at com.google.android.setupwizard.update.EarlyUpdateHelper.runEarlyUpdateWithRetries(EarlyUpdateHelper.java:280) at com.google.android.setupwizard.update.EarlyUpdateHelper.lambda$runEarlyUpdateWithRetries$5(EarlyUpdateHelper.java:299) at com.google.android.setupwizard.update.-$$Lambda$EarlyUpdateHelper$Nau9PyIrwsMoLscYiG1FI7R2Mfs.apply(Unknown Source:6) at java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1016) at java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2150) at com.google.android.setupwizard.update.EarlyUpdateHelper.runEarlyUpdateWithRetries(EarlyUpdateHelper.java:280) at com.google.android.setupwizard.update.EarlyUpdateHelper.startPlayEarlyUpdateIfNotRunning(EarlyUpdateHelper.java:209) at com.google.android.setupwizard.update.EarlyUpdateHelper.startEarlyUpdateIfNotRunning(EarlyUpdateHelper.java:187) at com.google.android.setupwizard.predeferred.PreDeferredUpdateService.lambda$onStartCommand$0(PreDeferredUpdateService.java:113) at com.google.android.setupwizard.predeferred.-$$Lambda$PreDeferredUpdateService$EBp84J0RwRaIASl9qCnqQXLeBm4.apply(Unknown Source:4) at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:986) at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:960) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:482) at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1988) at com.google.android.setupwizard.common.util.CompletableFutures.lambda$KMwvM4O51ihR01DyLqi7JhsaNtM(Unknown Source:0) at com.google.android.setupwizard.common.util.-$$Lambda$CompletableFutures$KMwvM4O51ihR01DyLqi7JhsaNtM.accept(Unknown Source:2) at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:664) at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:640) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:482) at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1988) at com.google.android.setupwizard.util.TaskUtil.lambda$asCompletableFuture$0(TaskUtil.java:45) at com.google.android.setupwizard.util.-$$Lambda$TaskUtil$h7rksTOpLVG7tKCrSBBZOFhmXQw.onComplete(Unknown Source:2) at com.google.android.gms.tasks.zzj.run(OnCompleteCompletionListener.java:4) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6649) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:826) Caused by: com.google.android.setupwizard.common.util.CompletableFutures$NoMoreRetriesException:
xml
1<?xml version="1.0" encoding="utf-8"?> 2<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:tools="http://schemas.android.com/tools" 4 android:layout_width="match_parent" 5 android:layout_height="match_parent" 6 tools:context=".page2"> 7 8 <!-- TODO: Update blank fragment layout --> 9 10 <LinearLayout 11 android:layout_width="match_parent" 12 android:layout_height="match_parent" 13 android:orientation="vertical"> 14 15 16 <Space 17 android:layout_width="match_parent" 18 android:layout_height="27dp" /> 19 20 <ScrollView 21 android:layout_width="match_parent" 22 android:layout_height="match_parent"> 23 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="match_parent" 27 android:orientation="vertical"> 28 29 <TableLayout 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:orientation="vertical"> 33 34 <TableRow 35 android:layout_width="match_parent" 36 android:layout_height="match_parent" 37 android:gravity="center"> 38 39 <ImageView 40 android:id="@+id/imageView25" 41 android:layout_width="80dp" 42 android:layout_height="100dp" 43 android:src="@drawable/img_0005" /> 44 45 <ImageView 46 android:id="@+id/imageView26" 47 android:layout_width="80dp" 48 android:layout_height="100dp" 49 android:src="@drawable/img_0006" /> 50 51 <ImageView 52 android:id="@+id/imageView27" 53 android:layout_width="80dp" 54 android:layout_height="100dp" 55 android:src="@drawable/img_0007" /> 56 57 <ImageView 58 android:id="@+id/imageView28" 59 android:layout_width="80dp" 60 android:layout_height="100dp" 61 android:src="@drawable/img_0008" /> 62 </TableRow> 63 64 <!--文字数制限により中略--> 65 66 <TableRow 67 android:layout_width="match_parent" 68 android:layout_height="match_parent" 69 android:gravity="center"> 70 71 <ImageView 72 android:id="@+id/imageView104" 73 android:layout_width="@dimen/cardW" 74 android:layout_height="@dimen/cardH" 75 android:src="@drawable/img_0085" /> 76 77 <ImageView 78 android:id="@+id/imageView105" 79 android:layout_width="@dimen/cardW" 80 android:layout_height="@dimen/cardH" 81 android:src="@drawable/img_0086" /> 82 83 <ImageView 84 android:id="@+id/imageView106" 85 android:layout_width="@dimen/cardW" 86 android:layout_height="@dimen/cardH" 87 android:src="@drawable/img_0087" /> 88 89 <ImageView 90 android:id="@+id/imageView107" 91 android:layout_width="@dimen/cardW" 92 android:layout_height="@dimen/cardH" 93 android:src="@drawable/img_0088" /> 94 </TableRow> 95 96 </TableLayout> 97 </LinearLayout> 98 </ScrollView> 99 100 </LinearLayout> 101 102</FrameLayout>
あなたの回答
tips
プレビュー