前提・実現したいこと
ボタンを押してplayerを選択しMilkCocoaからsendされる値に合わせてバイブレーションをするアプリ
発生している問題・エラーメッセージ
ソース上ではエラーが発生しなかったのだが
activity_main.xml上でのエラーが発生した
Failed to load AppCompat ActionBar with unknown error.
表示されるはずの3つのボタンが表示されなかった
エラーメッセージ
該当のソースコード
ボタンについて書いてる文だけいれます
activity_main.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=".MainActivity"> 8 9 <LinearLayout 10 android:layout_width="0dp" 11 android:layout_height="0dp" 12 android:orientation="vertical" 13 app:layout_constraintBottom_toBottomOf="parent" 14 app:layout_constraintEnd_toEndOf="parent" 15 app:layout_constraintStart_toStartOf="parent" 16 app:layout_constraintTop_toTopOf="parent"> 17 18 <Button 19 android:id="@+id/button1" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:text="Player1" /> 23 24 <Button 25 android:id="@+id/button2" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:text="Player2" /> 29 30 <Button 31 android:id="@+id/penalty_button" 32 android:layout_width="match_parent" 33 android:layout_height="373dp" 34 android:text="Touch!!!!!" /> 35 </LinearLayout> 36</android.support.constraint.ConstraintLayout>
補足情報(FW/ツールのバージョンなど)
AndroidStudio3.14を使用しています
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/08/20 13:15
2018/08/20 13:16
2018/08/20 14:04 編集
2018/08/20 14:14
2018/08/21 10:57
2018/08/21 11:00
2018/08/21 11:12
2018/08/22 11:27 編集