Oi, matheus.
Vc quis dizer o código?
Se for é esse aqui:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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="wrap_content">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:context=".ui.activity.FormularioAlunoActivity">
<EditText
android:id="@+id/activity_formulario_aluno_nome"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="12dp"
android:layout_marginTop="8dp"
android:hint="@string/nome"
android:inputType="textCapWords"
app:layout_constraintTop_toTopOf="parent"
android:autofillHints="" />
<EditText
android:id="@+id/activity_formulario_aluno_telefone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="12dp"
android:hint="@string/telefone"
android:inputType="phone"
app:layout_constraintTop_toBottomOf="@id/activity_formulario_aluno_nome"
android:autofillHints="" />
<EditText
android:id="@+id/activity_formulario_aluno_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="12dp"
android:hint="@string/email"
android:inputType="textEmailAddress"
app:layout_constraintTop_toBottomOf="@id/activity_formulario_aluno_telefone"
android:autofillHints="" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
o detalhe dos erros são esses:
E o meu gradle está assim:
plugins {
id 'com.android.application'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "alura.agenda"
minSdkVersion 25
targetSdkVersion 30
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 {
def room_version = "2.2.5"
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'