AndroidStudioで実行するとxmlファイル内でエラー発生する。

前提

AndrondStudioでJavaを用いて、アンドロイドアプリを作成し始めました。
初めにDesignでボタンやテキストを作って、環境内のエミュレーターのスマホ画面で確認してみようと実行したところ、エラーが発生しました。

実現したいこと

エラーをなくして、実行完了し、作成したデザインを表示したい

発生している問題・エラーメッセージ

エラーメッセージ AndroidStudioProjects\QuickTap\app\src\main\res\layout\activity_main.xml:22: AAPT: error: attribute layouto_constraintLeft_toLeftOf (aka com.example.quicktap:layouto_constraintLeft_toLeftOf) not found. 該当のソースコード java ```ここに言語を入力 コード ```xmlファイル <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <TextView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Quick Tap" android:textSize="30dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.507" app:layouto_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.221" /> <Button android:id="@+id/start" android:layout_width="200dp" android:layout_height="wrap_content" android:text="GameStart" android:backgroundTint="#0892d0" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layouto_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <Button android:id="@+id/score" android:layout_width="200dp" android:layout_height="wrap_content" android:text="HighScore" android:backgroundTint="#0892d0" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layouto_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.621" /> </androidx.constraintlayout.widget.ConstraintLayout>

試したこと

エラーを検索したが、汎用性の高いエラー文のため、求めていた回答が得られなかった

補足情報(FW/ツールのバージョンなど)

build.gradle(:app)の内容です バージョンなどが見れます

plugins {
id 'com.android.application'
}

android {
namespace 'com.example.quicktap'
compileSdk 33

defaultConfig { applicationId "com.example.quicktap" minSdk 30 targetSdk 33 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }

}

dependencies {

implementation 'androidx.appcompat:appcompat:1.5.1' implementation 'com.google.android.material:material:1.6.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

}
ここにより詳細な情報を記載してください。
build Output欄に、Android resource linking failed が3行出ております xmlファイルの22行、35行、49行となっており、 該当するコードは、android:text="GameStart"とandroid:text="HighScore"と app:layout_constraintVertical_bias="0.621"です

コメントを投稿

0 コメント