https://kotlinlang.org logo
#compose
Title
# compose
p

PHondogo

12/14/2021, 3:25 PM
Hello! Compose application crashes with
Copy code
java.lang.NoSuchMethodError: No static method infiniteRepeatable-9IiC70o$default(Landroidx/compose/animation/core/DurationBasedAnimationSpec;Landroidx/compose/animation/core/RepeatMode;JILjava/lang/Object;)Landroidx/compose/animation/core/InfiniteRepeatableSpec; in class Landroidx/compose/animation/core/AnimationSpecKt; or its super classes (declaration of 'androidx.compose.animation.core.AnimationSpecKt'
It happens at
Copy code
val rotation = remember { Animatable(0f) }
    LaunchedEffect(Unit) {
        rotation.animateTo(
            targetValue = 360f,
            animationSpec = infiniteRepeatable(
                animation = tween(durationPerCycle, easing = LinearEasing),
                repeatMode = RepeatMode.Restart
            )
        )
    }
On desktop version it is working.
I'm using compose version 1.0.0
Copy code
org.jetbrains.compose:compose-gradle-plugin:1.0.0
Before 1.0.0 it was working.
z

Zoltan Demant

12/14/2021, 3:42 PM
Does clean and then rerunning your project fix it? If so -> https://issuetracker.google.com/issues/207965102
p

PHondogo

12/15/2021, 6:56 AM
No. After full clean I've got the same exception.
5 Views