pin-lock-compose
pin-lock-compose copied to clipboard
NoSuchMethodError for androidx.compose:compose-bom:2023.09.02
When I use PinLock() in MainActivity so app crashed with exception.
java.lang.NoSuchMethodError: No
static method AnimatedContent(Ljava/lang/Object;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V
in class
Landroidx/compose/animation/AnimatedContentKt; or
its super classes (declaration of
'androidx.compose.animation.AnimatedContentKt' appears
Adding more details related to build.gradle.
composeOptions {
kotlinCompilerExtensionVersion = "1.5.3"
}
buildFeatures {
compose = true
viewBinding = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
dependencies {
implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.datastore:datastore-preferences:1.0.0")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2")
implementation("androidx.activity:activity-compose:1.8.0")
implementation(platform("androidx.compose:compose-bom:2023.09.02"))
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.ui:ui-tooling-preview")
implementation("androidx.compose.material3:material3")
implementation("androidx.fragment:fragment-ktx:1.6.1")
implementation("androidx.activity:activity-ktx:1.8.0")
implementation("androidx.compose.ui:ui-util")
implementation("androidx.compose.runtime:runtime")
implementation("androidx.compose.ui:ui-tooling")
}
It doesn't look like this lib is getting supported anymore. I am maintaining created a fork here.