Hello! Compose application crashes with ```java.la...
# compose
p
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
Does clean and then rerunning your project fix it? If so -> https://issuetracker.google.com/issues/207965102
p
No. After full clean I've got the same exception.