Skip to content

Resolve warnings due to import of lifecycle-livedata-core-ktx

Description

Android Studio automatically switches to a wildcard import of androidx.lifecycle.* when a threshold is reached. This pulls in a deprecated extension that triggers a warning during the build process.

Two options exist for addressing the issue:

  1. Explicitly create an Observer lambda to avoid invoking the extension
  2. Exclude the lifecycle-livedata-core-ktx dependency