3

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

sheko
  • 516
  • 4
  • 15

1 Answers1

4

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

EpicPandaForce
  • 79,669
  • 27
  • 256
  • 428
Ashish
  • 6,791
  • 3
  • 26
  • 48
  • this works for the animation but `import androidx.core.view.children` still not works – sheko Mar 05 '20 at 10:41
  • I posted proper version but confused with EpicPanda Version – Ashish Mar 05 '20 at 10:58
  • now i have `Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option` – sheko Mar 05 '20 at 11:02