###前提・実現したいこと
本日androidアプリ開発を始めた初心者です。
とりあえず画像を表示させようとしています。
###発生している問題・エラーメッセージ
activity_main.xmlで表示されている画像がエミュレータを起動すると表示することができないです
エラーメッセージ
###該当のソースコード
xml
1<?xml version="1.0" encoding="utf-8"?> 2<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 xmlns:tools="http://schemas.android.com/tools" 5 android:layout_width="match_parent" 6 android:layout_height="match_parent" 7 tools:context="com.example.asanokou.myapplication.MainActivity"> 8 9 <TextView 10 android:layout_width="wrap_content" 11 android:layout_height="wrap_content" 12 android:text="@string/hello" 13 app:layout_constraintBottom_toBottomOf="parent" 14 app:layout_constraintLeft_toLeftOf="parent" 15 app:layout_constraintRight_toRightOf="parent" 16 app:layout_constraintTop_toTopOf="parent" 17 app:layout_constraintHorizontal_bias="0.326" 18 app:layout_constraintVertical_bias="0.174" /> 19 20 <Button 21 android:id="@+id/button" 22 android:layout_width="wrap_content" 23 android:layout_height="wrap_content" 24 25 android:text="Button" 26 tools:layout_constraintTop_creator="1" 27 tools:layout_constraintLeft_creator="1" 28 app:layout_constraintLeft_toLeftOf="parent" 29 app:layout_constraintTop_toTopOf="parent" /> 30 31 <ImageView 32 android:id="@+id/imageView" 33 android:layout_width="86dp" 34 android:layout_height="66dp" 35 app:srcCompat="@mipmap/ic_launcher" 36 tools:layout_constraintTop_creator="1" 37 android:layout_marginStart="29dp" 38 android:layout_marginTop="68dp" 39 app:layout_constraintTop_toBottomOf="@+id/button" 40 tools:layout_constraintLeft_creator="1" 41 app:layout_constraintLeft_toLeftOf="parent" 42 android:layout_marginLeft="29dp" 43 android:contentDescription="test"/> 44 45</android.support.constraint.ConstraintLayout> 46
###試したこと
ネットで検索して調べて試してみたのですが解決することができませんでした
###補足情報(言語/FW/ツール等のバージョンなど)

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/07/02 07:26 編集
2017/07/02 10:43
2017/07/04 01:10