I am getting error: package android.arch.lifecycle does not exist and i tried to resolve it, i used below links : but none of these resolve it:
Failed to resolve: android.arch.lifecycle:extensions:1.0.0-alpha1 android studio 3.0 Could not resolve android.arch.lifecycle:extensions:1.1.0
i have below dependencies :
// Room components
implementation "android.arch.persistence.room:runtime:$rootProject.roomVersion"
annotationProcessor "android.arch.persistence.room:compiler:$rootProject.roomVersion"
androidTestImplementation "android.arch.persistence.room:testing:$rootProject.roomVersion"
// Lifecycle components
implementation "android.arch.lifecycle:extensions:$rootProject.archLifecycleVersion"
annotationProcessor "android.arch.lifecycle:compiler:$rootProject.archLifecycleVersion"
Recently I got this link: https://developer.android.com/jetpack/androidx/releases/lifecycle#java which says : The APIs in lifecycle-extensions have been deprecated. Instead, add dependencies for the specific Lifecycle artifacts you need.
Does this mean now I need to use individual packages?