2023/07 10

Caused by: java.lang.IllegalArgumentException: MaterialThemeUsingMdcTheme requires the host context's theme to extend Theme.MaterialComponents

Caused by: java.lang.IllegalArgumentException: MaterialThemeUsingMdcTheme requires the host context's theme to extend Theme.MaterialComponents at com.google.android.material.composethemeadapter.MdcTheme.createMdcTheme(MdcTheme.kt:134) at com.google.android.material.composethemeadapter.MdcTheme.createMdcTheme$default(MdcTheme.kt:125) at com.google.android.material.composethemeadapter.MdcTheme.Mdc..

Android Studio build error - compileDebugJavaWithJavac task (current target it 1.8) and kaptGenerateStubsDebugKotlin task (current target is 17)

Before compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = "1.8" freeCompilerArgs = listOf("-Xjvm-default=enable") } After >>> JavaVersion.VERSION_1_8.toString() compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = JavaVersio..

The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant)

com.google.android.material.bottomappbar.BottomAppBar material 을 사용 할 때, material 테마를 적용 해주시 않으면 아래와 같은 에러가 나온다. The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant) layout.xml 과 style.xml에 아래와 같이 수정 해준다. 1. layout android:theme="@style/MaterialTheme" 2. style

반응형