質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
XML

XMLは仕様の1つで、マークアップ言語群を構築するために使われています。

Java

Javaは、1995年にサン・マイクロシステムズが開発したプログラミング言語です。表記法はC言語に似ていますが、既存のプログラミング言語の短所を踏まえていちから設計されており、最初からオブジェクト指向性を備えてデザインされています。セキュリティ面が強力であることや、ネットワーク環境での利用に向いていることが特徴です。Javaで作られたソフトウェアは基本的にいかなるプラットフォームでも作動します。

Android Studio

Android Studioは、 Google社によって開発された、 Androidのネイティブアプリケーション開発に特化した統合開発ツールです。

Q&A

0回答

278閲覧

[android studio]エミュレータが落ちる

TA-KEY

総合スコア21

XML

XMLは仕様の1つで、マークアップ言語群を構築するために使われています。

Java

Javaは、1995年にサン・マイクロシステムズが開発したプログラミング言語です。表記法はC言語に似ていますが、既存のプログラミング言語の短所を踏まえていちから設計されており、最初からオブジェクト指向性を備えてデザインされています。セキュリティ面が強力であることや、ネットワーク環境での利用に向いていることが特徴です。Javaで作られたソフトウェアは基本的にいかなるプラットフォームでも作動します。

Android Studio

Android Studioは、 Google社によって開発された、 Androidのネイティブアプリケーション開発に特化した統合開発ツールです。

0グッド

0クリップ

投稿2018/06/07 13:05

編集2018/06/08 04:57

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>

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

Wind

2018/06/07 13:35

元画像のサイズ次第じゃないでしょうか?そのまま読み込んでいるだけなので、大きい画像ばかりだとメモリが足りなくて落ちると思います。
TA-KEY

2018/06/07 13:40

回答ありがとうございます。画像サイズなどを追記しました。どう思いますか?
aja

2018/06/07 13:57

画像はBitmap表示なのでファイルサイズではなく縦横サイズです。起動で落ちているとOutOfMemory問題などを引き起こすので後々大変です。
keicha_hrs

2018/06/07 13:59

「エミュレータが落ちてしまう」というのは、エミュレータのウィンドウ自体が閉じてしまう(エミュレータそのものが強制終了してしまう)ということなのか、エミュレータの中で稼働させているアプリが落ちてしまうということなのか、どちらなのでしょうか。前者であれば尋常ではありませんが。
TA-KEY

2018/06/07 14:01

aja様。メモリーに何かが残ってしまっている可能性があるということでしょうか?
TA-KEY

2018/06/07 14:03

keicha_hrs様。すみません、後者です。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問