title: Cannot access androidx.lifecycle.LifecycleOwner, what is the meaning of error in Android?
body: <p>On which situation android-build/android-studio shows these errors?</p>
  
  <blockquote>
    <p>Cannot access androidx.lifecycle.LifecycleOwner
    and <br>
    Cannot access androidx.lifecycle.ViewModelStoreOwner</p>
  </blockquote>
  
  <p>What is the meaning of this errors? I found that adding <code>androidx.lifecycle:lifecycle-viewmodel</code> as dependency solves these errors, I want to know the meaning of the error in terms of Android Activity LifeCycle(Or is it related to lifecycle or not).</p>
  
  <p>For example in this code call to `super' onSavedInstanceState shows this error</p>
  
  <pre><code>public class AppActivity extends FragmentActivity {
  
      @Override
      protected void onSaveInstanceState(Bundle outState) {
          super.onSaveInstanceState(outState);  // Cannot access androidx.lifecycle.LifecycleOwner
      }
  
  }
  </code></pre>
  
  <p>When should I use Android Lifecycles,and when should I avoid using it?</p>