l

    loloof64

    1 year ago
    Hi ! In this documentation : https://developer.android.com/reference/kotlin/androidx/compose/animation/core/Animatable#init. The snippet use
    launch
    in order to start a new Coroutine. But, though I've installed the coroutine dependency in
    gradle.build
    , I still get an error in Android Studio What did I forget to set ?
    Ali Albaali

    Ali Albaali

    1 year ago
    Maybe you forgot to add the repository? I also think you can do it with
    LaunchedEffect
    .
    l

    loloof64

    1 year ago
    Thank you, I think I must use
    LaunchedEffect
    instead as you're suggesting me, because, as you can see in the app build.gradle, I've already added the repository as an
    implementation
    dependency.
    Indeed : LaunchedEffect seems fine as now, no error. Thank you 🙂