Need to add import androidx.core.view.children

Viewed 1416

Downloaded a demo to check something inside it these imports works

import androidx.core.view.children
import androidx.core.animation.doOnEnd
import androidx.core.animation.doOnStart

but i can't use inside my project , it gives me error with children and animation

Unresolved reference: animation

BTW i added AndroidX from this

https://stackoverflow.com/a/58134686/8669531

if this will make a difference

1 Answers

Those are Android-ktx Packages. You can read on any blog about android-ktx.

Implement KTX :

implementation "androidx.core:core-ktx:1.2.0"

This is releases of Android-KTX

Related